mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 802210 - Part 3: Unset PYTHONDONTWRITEBYECODE when creating virtualenv; r=ted
This commit is contained in:
parent
0b95078494
commit
3ba849533e
@ -89,11 +89,17 @@ class VirtualenvManager(object):
|
||||
called out to), the path to create the virtualenv in, and a handle to
|
||||
write output to.
|
||||
"""
|
||||
env = dict(os.environ)
|
||||
try:
|
||||
del env['PYTHONDONTWRITEBYTECODE']
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
args = [sys.executable, self.virtualenv_script_path,
|
||||
'--system-site-packages', self.virtualenv_root]
|
||||
|
||||
result = subprocess.call(args, stdout=self.log_handle,
|
||||
stderr=subprocess.STDOUT)
|
||||
stderr=subprocess.STDOUT, env=env)
|
||||
|
||||
if result != 0:
|
||||
raise Exception('Error creating virtualenv.')
|
||||
|
Loading…
Reference in New Issue
Block a user