-
-
Notifications
You must be signed in to change notification settings - Fork 257
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
Fix symlinked venv ns-package calcs. #2165
Conversation
IPython can inject ~PS1-style prefixes depending on the IPython version and Python version in-play. Avoid having to worry about this with a dedicated test communication channel separate from stdio.
It turns out PyPy 7.3.12 has them! In particular hpy.
Previously namespace packages were handled only amongst 3rd-party deps. Any ns-package also split across PEX user sources would lead to one of the 3rd-party dep members of the namespace package getting its cached wheel install contaminated with the PEX user source that was a member of the ns-package. Fixes pex-tool#2160
assert ProjectName("top_level") == top_level.metadata.project_name | ||
assert Version("0.1.0") == top_level.metadata.version | ||
|
||
assert [os.path.join(top_level.location, "top_level", "lib.py")] == [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test fails pre-fix for 2/9 cases as expected: symlinked venv {packed,zipapp}
Use pkgutil namespace packages and older setuptools config style.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only reviewed 0927f43, the rest looked like they're covered in other PRs.
|
||
top_level_library = os.path.join(top_level_project, "top_level", "lib.py") | ||
with safe_open(top_level_library, "w") as fp: | ||
fp.write("OG = 'Henry Barber'") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Respect!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(I had to look him up though)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I grew up trying to climb Barber routes, sometimes succeeding. It's been a long time but just got on another one many years later out at the Ophir Wall. Even if not physically challenged it's almost certain he'll have provided a mental one!
Previously namespace packages were handled only amongst 3rd-party deps.
Any ns-package also split across PEX user sources would lead to one of
the 3rd-party dep members of the namespace package getting its cached
wheel install contaminated with the PEX user source that was a member of
the ns-package.
Fixes #2160