8000 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
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
reword
  • Loading branch information
neonene committed Jun 13, 2022
commit 4f08be90b16f5d4c255a053bdf8b6f2a2ac35d45
4 changes: 2 additions & 2 deletions Lib/test/test_embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -1334,12 +1334,12 @@ def test_init_is_python_build_win32(self):
}
env = {'TESTHOME': home, 'PYTHONPATH': paths_str}

env['INVALID_ISPYTHONBUILD'] = '1'
env['NEGATIVE_ISPYTHONBUILD'] = '1'
config['_is_python_build'] = 0
self.check_all_configs("test_init_is_python_build", config,
api=API_COMPAT, env=env)

env['INVALID_ISPYTHONBUILD'] = '0'
env['NEGATIVE_ISPYTHONBUILD'] = '0'
config['_is_python_build'] = 1
config['module_search_paths'][-1] = os.path.dirname(self.test_exe)
self.check_all_configs("test_init_is_python_build", config,
Expand Down
4 changes: 2 additions & 2 deletions Programs/_testembed.c
Original file line number Diff line number Diff line change
Expand Up @@ -1572,12 +1572,12 @@ static int test_init_is_python_build(void)
putenv("TESTHOME=");

config._is_python_build = INT_MAX;
env = getenv("INVALID_ISPYTHONBUILD");
env = getenv("NEGATIVE_ISPYTHONBUILD");
if (env) {
if (strcmp(env, "1") == 0) {
config._is_python_build++;
}
putenv("INVALID_ISPYTHONBUILD=");
putenv("NEGATIVE_ISPYTHONBUILD=");
}
init_from_config_clear(&config);
Py_Finalize();
Expand Down
0