Skip to content

Commit 559e50b

Browse files
committed
unix: define python_stdlib_platform_config PYTHON.json field
This will help consumers find the path containing files used to build embedded binaries. It appears Windows does not populate an equivalent directory. Closes #48.
1 parent 43a1a4d commit 559e50b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

cpython-unix/build-cpython.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ metadata = {
400400
"python_paths": {},
401401
"python_exe": "install/bin/python%s%s" % (sysconfig.get_python_version(), sys.abiflags),
402402
"python_major_minor_version": sysconfig.get_python_version(),
403+
"python_stdlib_platform_config": sysconfig.get_config_var("LIBPL").lstrip("/"),
403404
}
404405
405406
root = os.environ["ROOT"]

docs/distributions.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,17 @@ python_stdlib
154154

155155
(Deprecated in version 5 in favor of ``python_paths``.)
156156

157+
python_stdlib_platform_config
158+
Relative path to a ``config-<platform>`` directory in the standard
159+
library containing files used to embed Python in a binary.
160+
161+
This is a standard directory present in POSIX Python installations
162+
and is not specific to this project.
163+
164+
The key may be absent if no platform config directory exists.
165+
166+
(Version 5 or above only.)
167+
157168
python_stdlib_test_packages
158169
Array of strings of Python packages that define tests. (Version 4 or above
159170
only.)

0 commit comments

Comments
 (0)