Skip to content

Commit 6793d5f

Browse files
committed
Unset __PYENV_LAUNCHER__ for frameworks.
Fixes #322
1 parent 5b904f8 commit 6793d5f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

virtualenv.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,6 +1257,10 @@ def install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages, clear):
12571257
mkdir(bin_dir)
12581258
py_executable = join(bin_dir, os.path.basename(sys.executable))
12591259
if 'Python.framework' in prefix:
1260+
# OS X framework builds cause validation to break
1261+
# https://github.com/pypa/virtualenv/issues/322
1262+
if os.environ.get('__PYVENV_LAUNCHER__'):
1263+
os.unsetenv('__PYVENV_LAUNCHER__')
12601264
if re.search(r'/Python(?:-32|-64)*$', py_executable):
12611265
# The name of the python executable is not quite what
12621266
# we want, rename it.

0 commit comments

Comments
 (0)