Bug 802210 - Part 2: Unset PYTHONDONTWRITEBYTECODE when populating virtualenv; r=glandium

This commit is contained in:
Gregory Szorc 2012-10-22 11:13:59 -07:00
parent f480003140
commit 07e128a189

View File

@ -193,7 +193,8 @@ 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')
IGNORE_ENV_VARIABLES = ('CC', 'CXX', 'CFLAGS', 'CXXFLAGS', 'LDFLAGS',
'PYTHONDONTWRITEBYTECODE')
try:
old_target = os.environ.get('MACOSX_DEPLOYMENT_TARGET', None)