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

Fixup PEX.demote_bootstrap: fully unimport. #554

Merged
merged 2 commits into from
Sep 25, 2018

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Sep 25, 2018

Previously only root 3rdparty packages copied into the bootstrap were
unimported leaving subpackages in-place. This could lead to a mismatch
in 3rdparty package API expectations when a re-imported 3rdparty root
package from the user PEX sys.path was from a different version of the
3rdparty package.

Fixes #550

Previously only root 3rdparty packages copied into the bootstrap were
unimported leaving subpackages in-place. This could lead to a mismatch
in 3rdparty package API expectations when a re-imported 3rdparty root
package from the user PEX sys.path was from a different version of the
3rdparty package.

Fixes pex-tool#550
@jsirois
Copy link
Member Author

jsirois commented Sep 25, 2018

NB: The new test fails before the fix.

@jsirois
Copy link
Member Author

jsirois commented Sep 25, 2018

@DrumMachineLearning, @zsimic & @zvezdan: if any of you all could try this out prior to release I'd be grateful.

@jsirois jsirois requested a review from kwlzn September 25, 2018 17:02
@jsirois
Copy link
Member Author

jsirois commented Sep 25, 2018

#555 tracks a hotfix release for this.

Copy link
Contributor

@Eric-Arellano Eric-Arellano left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this and adding a test!

pex/pex.py Show resolved Hide resolved
tests/test_pex.py Show resolved Hide resolved
tests/test_pex.py Show resolved Hide resolved
@jsirois
Copy link
Member Author

jsirois commented Sep 25, 2018

Thanks a bunch for the review Eric!

@jsirois jsirois merged commit 479bd5f into pex-tool:master Sep 25, 2018
@jsirois jsirois deleted the issues/550 branch September 25, 2018 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants