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

Modernize virtualenv. #10330

Merged
merged 1 commit into from Jul 12, 2020
Merged

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Jul 11, 2020

We do this by creating a virtualenv pex at the desired version and
using that. To do so efficiently, downloading and caching of a pex
tool is also factored up to build-support/common.py.

[ci skip-rust-tests]

@Eric-Arellano
Copy link
Contributor

See #8951.

@jsirois
Copy link
Member Author

jsirois commented Jul 11, 2020

Discovered bugs in virtualenv 16.6.2 wrt the site module in the context of debugging #10220

@jsirois
Copy link
Member Author

jsirois commented Jul 11, 2020

I'll update this to leave a comment about why we can't do this .... but, since this script is for devs can't we just trap an error and ask devs to get their system un-borked?

We do this by creating a virtualenv pex at the desired version and
using that. To do so efficiently, downloading and caching of a pex
tool is also factored up to build-support/common.py.

# Rust tests will be skipped. Delete if not intended.
[ci skip-rust-tests]
@jsirois
Copy link
Member Author

jsirois commented Jul 11, 2020

Alright, PTAL - now using the latest virtualenv via pex.

@jsirois jsirois changed the title Remove build-support/virtualenv; use stdlib venv. Modernize virtualenv. Jul 11, 2020
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!

@jsirois jsirois merged commit f583d18 into pantsbuild:master Jul 12, 2020
@jsirois jsirois deleted the virtualenv/modernize branch July 12, 2020 04:38
jsirois added a commit to jsirois/pants that referenced this pull request Jul 13, 2020
This reverts commit f583d18.

[ci skip-rust-tests]
jsirois added a commit that referenced this pull request Jul 14, 2020
…0343)

* Revert "Fix `run_virtualenv` to target the current `$PY`. (#10331)"

This reverts commit 206b316.

* Revert "Modernize virtualenv. (#10330)"

This reverts commit f583d18.
Eric-Arellano pushed a commit to Eric-Arellano/pants that referenced this pull request Jul 15, 2020
…ntsbuild#10343)

* Revert "Fix `run_virtualenv` to target the current `$PY`. (pantsbuild#10331)"

This reverts commit 206b316.

* Revert "Modernize virtualenv. (pantsbuild#10330)"

This reverts commit f583d18.
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.

None yet

2 participants