Skip to content

Commit 7f2c8da

Browse files
authored
Merge pull request #1634 from mattip/pypy3.8
Update and reshuffle info about PyPy
2 parents d28f5aa + 0ddf93e commit 7f2c8da

File tree

3 files changed

+42
-21
lines changed

3 files changed

+42
-21
lines changed

src/maintainer/knowledge_base.rst

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,23 +1148,7 @@ because these symbols are in fact available. To do so, add
11481148
PyPy builds
11491149
===========
11501150
1151-
To use the PyPy 3.6 or 3.7 builds you can do the following,
1152-
1153-
.. code-block:: bash
1154-
1155-
conda create -n pypy36 pypy python=3.6
1156-
conda create -n pypy37 pypy python=3.7
1157-
1158-
.. note::
1159-
1160-
As of March 8 2020, if you are using defaults as a low priority channel,
1161-
then you need to use strict channel priority as the metadata in defaults
1162-
has not been patched yet which allows cpython extension packages to be
1163-
installed alongside pypy.
1164-
1165-
.. code-block:: bash
1166-
1167-
conda config --set channel_priority strict
1151+
See :ref:`pypy` in the user docs for more info about PyPy and ``conda-forge``.
11681152
11691153
To build your python package for pypy, wait for the bot to send a
11701154
PR and contact ``conda-forge/bot`` team if a PR is not sent after the

src/user/announcements.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@ Our announcements are published to an RSS feed `here <https://conda-forge.org/do
1010

1111
:2022-03-28: PyPy 3.8+3.9 Migration
1212

13-
Our bots will begin migrating all feedstocks with PyPy enabled
14-
to 3.8+3.9. We will be dropping PyPy 3.7 builds in each feedstock
15-
as the newer versions are added. As usual, you can track the status
16-
of the migration on our status page.
13+
We have begun rolling out packages built for PyPy3.8 and PyPy3.9. This work
14+
may take a few weeks. See :ref:`pypy` in the user docs for information on how to
15+
set up a PyPy environment. Please report issues to the PyPy developers at
16+
https://foss.heptapod.net/pypy/pypy/issues. We are also dropping PyPy3.7
17+
in each feedstock as the newer versions of PyPy are added. New versions of
18+
migrated feedstocks will not be built for PyPy3.7 and that version of the
19+
python interpreter will not be receiving updates. As usual, you can track the
20+
status of the migration on our status page.
1721

1822
:2022-03-06: Travis CI Usage Deprecated for ``win_*``, ``osx_*``, and ``linux_64`` Platforms
1923

src/user/tipsandtricks.rst

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,36 @@ In order to override the default behavior, a user can set the environment variab
152152
Note that you should select the cudatoolkit version most appropraite for your GPU; currently, we have "10.2", "11.0", "11.1", and "11.2" builds available, where the "11.2" builds are compatible with all cudatoolkits>=11.2. (At the time of writing, there seems to be a bug in how the cuda builds are resolved by mamba, defaulting to cudatoolkit==10.2; thus, it is prudent to be as explicit as possible like above or by adding ``cudatoolkit>=11.2`` or similar to the line above.)
153153

154154
For context, installing TensorFlow 2.7.0 with ``CONDA_CUDA_OVERRIDE="11.2" mamba install "tensorflow==2.7.0=cuda*" -c conda-forge`` results in approximately 2 GB of packages to download while ``CONDA_CUDA_OVERRIDE="11.2" mamba install "tensorflow=2.7.0=cpu*" -c conda-forge`` results in approximately 200 MB to download. That is a significant bandwidth and storage wasted if one only needs the ``-cpu`` variant!
155+
156+
157+
.. _pypy:
158+
159+
Using PyPy as an interpreter
160+
============================
161+
The ``conda-forge`` channel supports creating and installing packages into
162+
environments using the `PyPy interpreter`_. Many packages are already
163+
available. You need to enable the ``conda-forge`` channel and use
164+
the ``pypy`` identifier when creating your environment:
165+
166+
.. code-block:: shell
167+
168+
$ conda create -c conda-forge -n my-pypy-env pypy python=3.8
169+
$ conda activate my-pypy-env
170+
171+
Currently supported python versions are 3.8 and 3.9. Support for ``pypy3.7``
172+
has been dropped. While you can still create a python 3.7 environment, you
173+
you will not be getting updates as new package versions are released (including
174+
pypy itself).
175+
176+
.. note::
177+
178+
As of March 8 2020, if you are using defaults as a low priority channel,
179+
then you need to use strict channel priority as the metadata in defaults
180+
has not been patched yet which allows cpython extension packages to be
181+
installed alongside pypy.
182+
183+
.. code-block:: bash
184+
185+
$ conda config --set channel_priority strict
186+
187+
.. _`PyPy interpreter`: https://www.pypy.org

0 commit comments

Comments
 (0)