Bug 1590344 - Don't unset PYTHONDONTWRITEBYTECODE anymore; r=firefox-build-system-reviewers,mshal

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

--HG--
extra : rebase_source : 765b06658c8ee027bb7bba033bb58f90cfa91d8a
extra : source : e2448f988af9e39a6957d44446b203c24759ea8c
This commit is contained in:
Anthony Ramine 2019-10-22 21:05:53 +00:00
Родитель b22848cd46
Коммит e63ea2e660
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -199,7 +199,6 @@ class VirtualenvManager(object):
write output to.
"""
env = dict(os.environ)
env.pop('PYTHONDONTWRITEBYTECODE', None)
args = [python, self.virtualenv_script_path,
# Without this, virtualenv.py may attempt to contact the outside
@ -379,8 +378,7 @@ class VirtualenvManager(object):
# configure or a mozconfig activated in the current shell. We trust
# Python is smart enough to find a proper compiler and to use the
# proper compiler flags. If it isn't your Python is likely broken.
IGNORE_ENV_VARIABLES = ('CC', 'CXX', 'CFLAGS', 'CXXFLAGS', 'LDFLAGS',
'PYTHONDONTWRITEBYTECODE')
IGNORE_ENV_VARIABLES = ('CC', 'CXX', 'CFLAGS', 'CXXFLAGS', 'LDFLAGS')
try:
old_target = os.environ.get('MACOSX_DEPLOYMENT_TARGET', None)