gh-102151: Correctly fetch CONFIG_ARGS in Tools/freeze/test/freeze.py (#102152)

This commit is contained in:
Erlend E. Aasland 2023-02-23 15:09:51 +01:00 committed by GitHub
parent 665730d217
commit c3a178398c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,7 +153,7 @@ def prepare(script=None, outdir=None):
print(f'configuring python in {builddir}...')
cmd = [
os.path.join(srcdir, 'configure'),
*shlex.split(get_config_var(builddir, 'CONFIG_ARGS') or ''),
*shlex.split(get_config_var(srcdir, 'CONFIG_ARGS') or ''),
]
ensure_opt(cmd, 'cache-file', os.path.join(outdir, 'python-config.cache'))
prefix = os.path.join(outdir, 'python-installation')