FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-45582: Fix test_embed failure during a PGO build on Windows by neonene · Pull Request #30014 · python/cpython · GitHub

Repository navigation

bpo-45582: Fix test_embed failure during a PGO build on Windows - #30014

Merged
zooba merged 12 commits into
python:mainfrom
neonene:bpo-45582_pgo2
Dec 10, 2021
Merged

zooba merged 12 commits into
python:mainfrom
neonene:bpo-45582_pgo2

Conversation

neonene commented Dec 9, 2021 •
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

PGO-instrumented _testembed.exe and getpath.py often miscalculate the prefix path, when launched with all PYTHON* envvars removed.

The new path calculation uses VPATH, which is defined as "..\\.." in pythoncore.vcxproj. From PGO-instrumented folder, VPATH needs to be "..\\..\\.." to resolve prefix.

https://bugs.python.org/issue45582

zooba commented Dec 9, 2021

Copy link
Copy Markdown
Member

I like this change better, but maybe we should get VPATH into sysconfig so that it can be used in the test?

zooba commented Dec 9, 2021

Copy link
Copy Markdown
Member

maybe we should get VPATH into sysconfig so that it can be used in the test?

I think adding it as sys._vpath but only on Windows is fine for this. Then sysconfig can add it into its dict if it's there.

neonene commented Dec 10, 2021

Copy link
Copy Markdown
Contributor Author

Thank you for the nice idea. I've finished the implementation.

zooba merged commit 3f398a7 into python:main Dec 10, 2021
neonene deleted the bpo-45582_pgo2 branch December 11, 2021 01:42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL