mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #13150: Add a comment in _sysconfigdata to explain the origin of this file
This commit is contained in:
parent
daaaec9ee7
commit
65651ea313
1 changed files with 4 additions and 1 deletions
|
@ -323,7 +323,6 @@ def _generate_posix_vars():
|
|||
"""Generate the Python module containing build-time variables."""
|
||||
import pprint
|
||||
vars = {}
|
||||
destfile = os.path.join(os.path.dirname(__file__), '_sysconfigdata.py')
|
||||
# load the installed Makefile:
|
||||
makefile = get_makefile_filename()
|
||||
try:
|
||||
|
@ -348,7 +347,11 @@ def _generate_posix_vars():
|
|||
# the scripts are in another directory.
|
||||
if _PYTHON_BUILD:
|
||||
vars['LDSHARED'] = vars['BLDSHARED']
|
||||
|
||||
destfile = os.path.join(os.path.dirname(__file__), '_sysconfigdata.py')
|
||||
with open(destfile, 'w', encoding='utf8') as f:
|
||||
f.write('# system configuration generated and used by'
|
||||
' the sysconfig module\n')
|
||||
f.write('build_time_vars = ')
|
||||
pprint.pprint(vars, stream=f)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue