PEP 739: add missing fields (#3693)

This commit is contained in:
Filipe Laíns 2024-02-27 20:12:25 +00:00 committed by GitHub
parent 13022a6d12
commit 77a9780295
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 52 additions and 11 deletions

View File

@ -90,22 +90,60 @@ Implementation-specific keys
Additionally to the keys defined above, implementations may choose to include Additionally to the keys defined above, implementations may choose to include
extra keys with extra implementation-specific details. extra keys with extra implementation-specific details.
interpreter
-----------
Subsection with details Python interpreter. If the Python installation does not
provide an interpreter, this section will be missing.
path
~~~~
:Type: ``string``
:Description: The path to the Python interprer. Either an absolute path, or a
relative path to the directory containing this file, if
applicable.
libpython
---------
Subsection with details related to the ``libpython`` library. If the Python
installation does not provide a ``libpython`` library, this section will be
missing.
dynamic
~~~~~~~
:Type: ``string``
:Description: The path to the dynamic ``libpython`` library. Either an absolute
path, or a relative path to the directory containing this file, if
applicable. If the Python installation does not provide a dynamic
``libpython`` library, this entry will be missing.
static
~~~~~~~
:Type: ``string``
:Description: The path to the static ``libpython`` library. Either an absolute
path, or a relative path to the directory containing this file, if
applicable. If the Python installation does not provide a static
``libpython`` library, this entry will be missing.
c_api c_api
----- -----
Subsection with details related to the Python C API, if available. If the Python Subsection with details related to the Python C API, if available. If the Python
implementation does not provide a C API, this section will be missing. implementation does not provide a C API, this section will be missing.
TODO headers
~~~~~~~
libpython :Type: ``string``
--------- :Description: The path to the C API headers. Either an absolute path, or a
relative path to the directory containing this file, if
applicable.
Subsection with details related to the ``libpython``, if available. If the
Python implementation does not provide a ``libpython`` library, this section
will be missing.
TODO
Example Example
======= =======
@ -129,11 +167,14 @@ Example
}, },
"hexversion": "...", "hexversion": "...",
"cache_tag": "cpython-313", "cache_tag": "cpython-313",
"multiarch": "x86_64-linux-gnu" "_multiarch": "x86_64-linux-gnu"
},
"c_api": {
}, },
"libpython": { "libpython": {
"dynamic": "/usr/lib/libpython3.13.so.1.0",
"static": "/usr/lib/python3.13/config-3.13-x86_64-linux-gnu/libpython3.13.a",
},
"c_api": {
"headers": "/usr/include/python3.13"
} }
} }