Skip to content

Commit

Permalink
Bug 1607470, unset __PYVENV_LAUNCHER__ for virtualenvs, r=firefox-bui…
Browse files Browse the repository at this point in the history
…ld-system-reviewers,rstewart

The __PYVENV_LAUNCHER__ is set on macos to indicate which
python to use. Sadly, keeping this set confuses pip in
virtualenvs.
This corresponds to python/cpython#9516.

Differential Revision: https://phabricator.services.mozilla.com/D59853

UltraBlame original commit: ed91bca1f4a669454801390a1e5432fa2cd9561e
  • Loading branch information
marco-c committed Jan 16, 2020
1 parent 9b4d3f8 commit 3940be3
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions python/mozbuild/mozbuild/virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -1539,6 +1539,47 @@
"
"

#
__PYVENV_LAUNCHER__
confuses
pip
about
the
python
interpreter

#
See
https
:
/
/
bugzilla
.
mozilla
.
org
/
show_bug
.
cgi
?
id
=
1607470

os
.
environ
.
pop
(
'
__PYVENV_LAUNCHER__
'
None
)

if
self
.
Expand Down

0 comments on commit 3940be3

Please sign in to comment.