10000 gh-91985: Ensure in-tree builds override platstdlib_dir in every path calculation by neonene · Pull Request #93641 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-91985: Ensure in-tree builds override platstdlib_dir in every path calculation #93641

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Jun 16, 2022
Merged
Prev Previous commit
Next Next commit
move comment upper
  • Loading branch information
neonene committed Jun 15, 2022
commit 500cb811d08cad804ae914087ea6c28d89f2eaa2
4 changes: 2 additions & 2 deletions Programs/_testembed.c
Original file line number Diff line number Diff line change
Expand Up @@ -1552,6 +1552,8 @@ static int test_init_setpythonhome(void)

static int test_init_is_python_build(void)
{
// gh-91985: in-tree builds fail to check for build directory landmarks
// under the effect of 'home' or PYTHONHOME environment variable.
char *env = getenv("TESTHOME");
if (!env) {
error("missing TESTHOME env var");
Expand All @@ -1566,8 +1568,6 @@ static int test_init_is_python_build(void)
PyConfig config;
_PyConfig_InitCompatConfig(&config);
config_set_program_name(&config);
// gh-91985: in-tree builds fail to check for build directory landmarks
// under the effect of 'home' or PYTHONHOME environment variable.
config_set_string(&config, &config.home, home);
PyMem_RawFree(home);
putenv("TESTHOME=");
Expand Down
0