Permalink
Browse files

Additional fix needed for creating virtualenv from pyvenv.

  • Loading branch information...
1 parent e8f76b2 commit 74b1e5b973280a267deb27bfcf75cf854d525f04 @carljm carljm committed Sep 7, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 virtualenv.py
View
@@ -1183,6 +1183,9 @@ def install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages, clear):
if hasattr(sys, 'real_prefix'):
logger.notify('Using real prefix %r' % sys.real_prefix)
prefix = sys.real_prefix
+ elif hasattr(sys, 'base_prefix'):
+ logger.notify('Using base prefix %r' % sys.base_prefix)
+ prefix = sys.base_prefix
else:
prefix = sys.prefix
mkdir(lib_dir)

0 comments on commit 74b1e5b

Please sign in to comment.