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

Convert bdist_pex tests to explicit cmdclass. #897

Merged
merged 2 commits into from Feb 20, 2020

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Feb 19, 2020

Previously the test relied upon the tox venv interpreter (which
implicitly builds and installs the pex wheel) being the interpreter that
executed the python setup.py bdist_pex ... command. This assumption
could be violated when running under pyenv which OSX CI shards do.
Instead, explicitly add pex to the PYTHONPATH of the interpreter and
let distutils know about bdist_pex via --command-packages.

Fixes #896

Previously the test relied upon the tox venv interpreter, which
implicitly builds and installs the pex wheel, being the interpreter that
executed the `python setup.py bdist_pex ...` command. This assumption
could be foiled when running under `pyenv` which OSX CI shards do.
Instead, explicitly add pex to the `PYTHONPATH` of the interpreter and
let distutils know about `bdist_pex` via `--command-packages`.
@jsirois jsirois changed the title Debug error. Convert bdist_pex tests to explicit cmdclass. Feb 19, 2020
@jsirois jsirois marked this pull request as ready for review February 19, 2020 22:28
@jsirois
Copy link
Member Author

jsirois commented Feb 20, 2020

I'm going to submit to unblock landing #894 and #895.

@jsirois jsirois merged commit 97849d4 into pex-tool:master Feb 20, 2020
@jsirois jsirois deleted the issues/896 branch February 20, 2020 01:13
Copy link
Collaborator

@benjyw benjyw left a comment

Choose a reason for hiding this comment

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

LGTM

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.

Master CI is broken for OSX python3.8 tests/test_bdist_pex.py
3 participants