[pypy-svn] virtualenv-pypy trunk: ignore exec_prefix for pypy. This fixes a crash that you get when running virtualenv inside a pypy virtualenv

antocuni commits-noreply at bitbucket.org
Wed Feb 16 15:20:25 CET 2011


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: trunk
Changeset: r363:352a9bf21c85
Date: 2010-12-09 19:26 +0100
http://bitbucket.org/pypy/virtualenv-pypy/changeset/352a9bf21c85/

Log:	ignore exec_prefix for pypy. This fixes a crash that you get when
	running virtualenv inside a pypy virtualenv

diff --git a/virtualenv.py b/virtualenv.py
--- a/virtualenv.py
+++ b/virtualenv.py
@@ -799,7 +799,8 @@
     else:
         logger.debug('No include dir %s' % stdinc_dir)
 
-    if sys.exec_prefix != prefix:
+    # pypy never uses exec_prefix, just ignore it
+    if sys.exec_prefix != prefix and not is_pypy:
         if sys.platform == 'win32':
             exec_dir = join(sys.exec_prefix, 'lib')
         elif is_jython:


More information about the Pypy-commit mailing list