@@ -165,7 +165,7 @@ library as ``sys.abi_features``, and as the new environment marker variable
165165``sys_abi_features ``.
166166
167167ABI Features
168- ''''''''''''
168+ ------------
169169
170170ABI features are intrinsic properties of the Python interpreter, expressed as
171171simple, understandable strings.
@@ -199,8 +199,8 @@ which case there MUST be at most one feature present.
199199 this feature MUST NOT be present.
200200
201201
202- Addition to the Python Standard Library
203- '''''''''''''''''''''''''''''''''''''''
202+ The :data: ` !sys.abi_features ` attribute
203+ ---------------------------------------
204204
205205Making the ABI features available in an easily accessible, expressive,
206206standardized way is useful beyond the scope of environment markers.
@@ -224,8 +224,8 @@ defined in this PEP or in a subsequent PEP.
224224An example value would be ``sys.abi_features == frozenset({"free-threading",
225225"debug", "32-bit"}) `` on a free-threaded debug build for win32.
226226
227- Environment Markers
228- '''''''''''''''''''
227+ `` sys_abi_features `` environment marker
228+ ---------------------------------------
229229
230230To make ABI features available in dependency specifications, a new environment
231231marker variable, ``sys_abi_features ``, is added to the format of dependency
@@ -258,7 +258,8 @@ Like the grammar, also the overview table of environment markers in
258258 - Sample values
259259 * - ``sys_abi_features ``
260260 - ``sys.abi_features `` [#sys-abi-features ]_
261- - ``set() ``, ``{"free-threading"} ``, ``{"free-threading", "debug"} ``
261+ - ``frozenset() ``, ``frozenset({'free-threading', '64-bit'}) ``,
262+ ``frozenset({'gil-enabled', 'debug', '32-bit'}) ``
262263
263264With these additions, ABI features can be used in dependency specifications via
264265the ``in `` operator to test for the presence of a feature, or the ``not in ``
@@ -361,11 +362,11 @@ of the ``packaging`` library at `Environment markers for ABI features
361362also available.
362363
363364Since ``pip `` uses a vendored copy of ``packaging `` internally, we also provide
364- `a patched version of pip
365- <https://github.com/zklaus/pip/tree/env-marker-free-threading> `__, which is
366- based on pypa/pip:main with the vendored ``packaging `` replaced by the
365+ `a patched version of pip `__, which replaces the vendored ``packaging `` with the
367366reference implementation linked above.
368367
368+ __ https://github.com/zklaus/pip/tree/env-marker-free-threading
369+
369370Rejected Ideas
370371==============
371372
0 commit comments