Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 1590344 - Don't unset PYTHONDONTWRITEBYTECODE anymore; r=firefox-…
Browse files Browse the repository at this point in the history
…build-system-reviewers,mshal

Differential Revision: https://phabricator.services.mozilla.com/D50041
  • Loading branch information
nox committed Oct 22, 2019
1 parent 44a94e9 commit b37c511
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/mozbuild/mozbuild/virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ def create(self, python=sys.executable):
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
Expand Down Expand Up @@ -379,8 +378,7 @@ def handle_package(package):
# 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)
Expand Down

0 comments on commit b37c511

Please sign in to comment.