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
assert()
  • Loading branch information
neonene committed Jun 12, 2022
commit 0e75c9cd99192414b398e4a1780cd1cff05c472a
2 changes: 1 addition & 1 deletion Lib/test/test_getpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def update_pathconfig(config, attr):
read_pathconfig(ns['config'], '_is_python_build')
expected = dict(
_is_python_build=ns['config']['_is_python_build'],
build_prefix=None, # landmarks must not be checked
build_prefix=None, # landmarks must not be checked for
)
actual = getpath(ns, expected)
self.assertEqual(actual, expected)
Expand Down
1 change: 1 addition & 0 deletions Python/pathconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ _PyPathConfig_ReadGlobal(PyConfig *config)

#define COPY_INT(ATTR) \
do { \
assert(_Py_path_config.ATTR >= 0); \
if ((_Py_path_config.ATTR >= 0) && (config->ATTR <= 0)) { \
config->ATTR = _Py_path_config.ATTR; \
} \
Expand Down
0