diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-10-20 00:41:21 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-10-20 00:41:21 +0200 |
commit | 65651ea313b63e431a55c0cd191784ebf3ea9c38 (patch) | |
tree | bd9808255c0dd0be306b399544090c179fdd3196 /Lib/sysconfig.py | |
parent | daaaec9ee761f8cdca222ea393968aff9b57db28 (diff) | |
download | cpython-git-65651ea313b63e431a55c0cd191784ebf3ea9c38.tar.gz |
Issue #13150: Add a comment in _sysconfigdata to explain the origin of this file
Diffstat (limited to 'Lib/sysconfig.py')
-rw-r--r-- | Lib/sysconfig.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index 36c7aa49a5..276e683705 100644 --- a/Lib/sysconfig.py +++ b/Lib/sysconfig.py @@ -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) |