Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
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
Skip srcdir in builddir
Signed-off-by: Filipe Laíns <[email protected]>
  • Loading branch information
FFY00 committed Jan 29, 2025
commit 2c26b59af569457c30a74dc37db6f4314be0c217
3 changes: 3 additions & 0 deletions Lib/test/test_sysconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,9 @@ def test_sysconfigdata_json(self):
system_config_vars = get_config_vars()

ignore_keys = set()
# Keys dependent on Python being run outside the build directrory
if sysconfig.is_python_build():
ignore_keys |= {'srcdir'}
# Keys dependent on the executable location
if os.path.dirname(sys.executable) != system_config_vars['BINDIR']:
ignore_keys |= {'projectbase'}
Expand Down