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

(cherry picked from commit c3a178398c)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
This commit is contained in:
Miss Islington (bot) 2023-02-23 06:36:28 -08:00 committed by GitHub
parent 61e0bbdb0c
commit 3cc00127a2
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}...') print(f'configuring python in {builddir}...')
cmd = [ cmd = [
os.path.join(srcdir, 'configure'), 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')) ensure_opt(cmd, 'cache-file', os.path.join(outdir, 'python-config.cache'))
prefix = os.path.join(outdir, 'python-installation') prefix = os.path.join(outdir, 'python-installation')