Skip to content
Open
16 changes: 14 additions & 2 deletions peps/pep-0780.rst
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ Examples
========

Require Cython Pre-release for Free-Threaded Python
----------------------------------------------------
---------------------------------------------------
To require a pre-release of Cython only for a free-threaded Python interpreter,
the following dependency specification can be used::

Expand All @@ -244,12 +244,24 @@ dependency specification can be used::
scipy; platform_system != "Windows" or "pointer_bits::32" not in sys_abi_info

Require NumPy for a Free-Threaded Interpreter With Debugging Capabilities
--------------------------------------------------------------------------
-------------------------------------------------------------------------
To require NumPy only for a free-threaded interpreter with debugging
capabilities, the following dependency can be used::

numpy; "free-threaded::True" in sys_abi_info and "debug::True" in sys_abi_info

Require Free-Threaded Fork of PyYAML
------------------------------------
PyYAML initially decided not to support free-threading in its mainline
distribution before wider testing of free-threaded Python in the real world.
To faciliate this testing, a free-threaded fork, PyYAML-ft, was created.
To require this fork, for a free-threaded Python interpreter, without forcing
it also on the GIL-enabled interpreter, the following dependency specification
can be used::

pyyaml-ft; "free_threaded::True" in sys_abi_info
pyyaml; "free_threaded::True" not in sys_abi_info

Backwards Compatibility
=======================

Expand Down