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

miss-islington webhook-mailer at python.org
Thu Feb 23 09:36:41 EST 2023


https://github.com/python/cpython/commit/3cc00127a2f99915d6fa46c82c2fd46b1d4d603f
commit: 3cc00127a2f99915d6fa46c82c2fd46b1d4d603f
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2023-02-23T06:36:28-08:00
summary:

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

(cherry picked from commit c3a178398c199038f3a0891d09f0363ec73f3b38)

Co-authored-by: Erlend E. Aasland <erlend.aasland at protonmail.com>

files:
M Tools/freeze/test/freeze.py

diff --git a/Tools/freeze/test/freeze.py b/Tools/freeze/test/freeze.py
index b4c76ff36a87..f6a5adb4519f 100644
--- a/Tools/freeze/test/freeze.py
+++ b/Tools/freeze/test/freeze.py
@@ -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')



More information about the Python-checkins mailing list