Skip to content
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 dup requirement extra merging during PEX boot. #2707

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Feb 27, 2025

Previously, using root requirements of foo[bar] foo[baz] would produce
the same PEX as foo[bar,baz], (save for the root requirements list)
but the former PEX would not properly activate both the bar and baz
extras during boot. This is now fixed.

Fixes #2706.

Previously, using root requirements of `foo[bar] foo[baz]` would produce
the same PEX as `foo[bar,baz]`, but the former PEX would not properly
activate both the `bar` and `baz` extras during boot. This is now fixed.

Fixes pex-tool#2706.
).assert_success()

installed_wheel_dir = CacheDir.INSTALLED_WHEELS.path(pex_root=pex_root)
for module in "foo", "bar", "baz":
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

N.B.: The import baz fails when the yield qualified_requirement.with_extras(...) in the fix above is reverted to just be the old yield qualified_requirement.

@jsirois jsirois merged commit 9fd8c80 into pex-tool:main Feb 28, 2025
24 of 26 checks passed
@jsirois jsirois deleted the issues/2706 branch February 28, 2025 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant