]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-102151: Correctly fetch CONFIG_ARGS in Tools/freeze/test/freeze.py (GH-102152)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 23 Feb 2023 14:36:28 +0000 (06:36 -0800)
committerGitHub <noreply@github.com>
Thu, 23 Feb 2023 14:36:28 +0000 (06:36 -0800)
(cherry picked from commit c3a178398c199038f3a0891d09f0363ec73f3b38)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Tools/freeze/test/freeze.py

index b4c76ff36a873b8cb227434b983a50eb669bff01..f6a5adb4519fdb041675d433c323daf397f00fae 100644 (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')