diff options
author | neonene <53406459+neonene@users.noreply.github.com> | 2021-12-10 17:13:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-10 17:13:55 (GMT) |
commit | 3f398a77d37b5dfd51dabbc362d482a482fa885a (patch) | |
tree | 9ab6ad057291bc7ce12f9cf0286bd49556d5e407 /Modules/getpath.py | |
parent | 036bbb1d1b6156a1a72c40e9f907f302505085bc (diff) | |
download | cpython-3f398a77d37b5dfd51dabbc362d482a482fa885a.zip cpython-3f398a77d37b5dfd51dabbc362d482a482fa885a.tar.gz cpython-3f398a77d37b5dfd51dabbc362d482a482fa885a.tar.bz2 |
bpo-45582: Fix test_embed failure during a PGO build on Windows (GH-30014)
This defines VPATH differently in PGO instrumentation builds, to account for a different default output directory. It also adds sys._vpath on Windows to make the value available to sysconfig so that it can be used in tests.
Diffstat (limited to 'Modules/getpath.py')
-rw-r--r-- | Modules/getpath.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/getpath.py b/Modules/getpath.py index 84c9760..77f951d 100644 --- a/Modules/getpath.py +++ b/Modules/getpath.py @@ -187,7 +187,7 @@ if os_name == 'posix' or os_name == 'darwin': elif os_name == 'nt': BUILDDIR_TXT = 'pybuilddir.txt' - BUILD_LANDMARK = r'..\..\Modules\Setup.local' + BUILD_LANDMARK = f'{VPATH}\\Modules\\Setup.local' DEFAULT_PROGRAM_NAME = f'python' STDLIB_SUBDIR = 'Lib' STDLIB_LANDMARKS = [f'{STDLIB_SUBDIR}\\os.py', f'{STDLIB_SUBDIR}\\os.pyc'] |