File tree Expand file tree Collapse file tree 5 files changed +29
-3
lines changed Expand file tree Collapse file tree 5 files changed +29
-3
lines changed Original file line number Diff line number Diff line change @@ -455,9 +455,11 @@ metadata = {
455
455
},
456
456
"python_bytecode_magic_number": codecs.encode(importlib.util.MAGIC_NUMBER, "hex").decode("ascii"),
457
457
"python_paths": {},
458
+ "python_paths_abstract": sysconfig.get_paths(expand=False),
458
459
"python_exe": "install/bin/python%s%s" % (sysconfig.get_python_version(), sys.abiflags),
459
460
"python_major_minor_version": sysconfig.get_python_version(),
460
461
"python_stdlib_platform_config": sysconfig.get_config_var("LIBPL").lstrip("/"),
462
+ "python_config_vars": {k: str(v) for k, v in sysconfig.get_config_vars().items()},
461
463
}
462
464
463
465
root = os.environ["ROOT"]
Original file line number Diff line number Diff line change @@ -775,7 +775,7 @@ def build_cpython(
775
775
776
776
# Create PYTHON.json file describing this distribution.
777
777
python_info = {
778
- "version" : "5 " ,
778
+ "version" : "6 " ,
779
779
"target_triple" : target_triple ,
780
780
"optimizations" : optimizations ,
781
781
"python_tag" : entry ["python_tag" ],
Original file line number Diff line number Diff line change @@ -2237,7 +2237,7 @@ def build_cpython(
2237
2237
2238
2238
# Create PYTHON.json file describing this distribution.
2239
2239
python_info = {
2240
- "version" : "5 " ,
2240
+ "version" : "6 " ,
2241
2241
"target_triple" : target_triple ,
2242
2242
"optimizations" : optimizations ,
2243
2243
"python_tag" : entry ["python_tag" ],
Original file line number Diff line number Diff line change 25
25
importlib .util .MAGIC_NUMBER , "hex"
26
26
).decode ("ascii" ),
27
27
"python_paths" : {},
28
+ "python_paths_abstract" : sysconfig .get_paths (expand = False ),
28
29
"python_exe" : "install/python.exe" ,
29
30
"python_major_minor_version" : sysconfig .get_python_version (),
31
+ "python_config_vars" : {k : str (v ) for k , v in sysconfig .get_config_vars ().items ()},
30
32
}
31
33
32
34
root = os .environ ["ROOT" ]
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ without having to resort to heuristics.
32
32
The file contains a JSON map. This map has the following keys:
33
33
34
34
version
35
- Version number of the file format. Currently ``5 ``.
35
+ Version number of the file format. Currently ``6 ``.
36
36
37
37
target_triple
38
38
A target triple defining the platform and architecture of the machine
@@ -139,6 +139,28 @@ python_paths
139
139
140
140
(Version 5 or above only.)
141
141
142
+ python_paths_abstract
143
+ Mapping of ``sysconfig `` path names with placeholder values.
144
+
145
+ See https://docs.python.org/3/library/sysconfig.html#installation-paths
146
+ for the meaning of keys.
147
+
148
+ This is equivalent to calling ``sysconfig.get_paths(expand=False) ``.
149
+
150
+ (Version 6 or above only.)
151
+
152
+ python_config_vars
153
+ Mapping of string configuration names to string values.
154
+
155
+ This is equivalent to ``sysconfig.get_config_vars() `` with all values
156
+ normalized to strings.
157
+
158
+ Many configuration values may represent state as it existed in the
159
+ build environment and aren't appropriate for the run-time environment
160
+ on a different system.
161
+
162
+ (Version 6 or above only.)
163
+
142
164
python_exe
143
165
Relative path to main Python interpreter executable.
144
166
You can’t perform that action at this time.
0 commit comments