summaryrefslogtreecommitdiff
path: root/virtualenv.py
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2011-07-21 18:51:57 +0200
committerJannis Leidel <jannis@leidel.info>2011-07-21 18:51:57 +0200
commitb8a7db81c5a7db7a970240b0c13001203d831311 (patch)
tree1eddf75f0cc23de4f9c4a89121965105610e5acc /virtualenv.py
parent12f7b05fc4f46f7d7018b40e2f31615e385e3bc0 (diff)
parenta9ef1c5e733ed16f80940f9525dc2cf555cc9e85 (diff)
downloadvirtualenv-1.6.4.tar.gz
Merge branch 'hotfix/1.6.4'1.6.4
Diffstat (limited to 'virtualenv.py')
-rw-r--r--virtualenv.py23
1 files changed, 12 insertions, 11 deletions
diff --git a/virtualenv.py b/virtualenv.py
index 331c5c5..c173dd4 100644
--- a/virtualenv.py
+++ b/virtualenv.py
@@ -4,7 +4,7 @@
# If you change the version here, change it in setup.py
# and docs/conf.py as well.
-virtualenv_version = "1.6.3"
+virtualenv_version = "1.6.4"
import base64
import sys
@@ -487,16 +487,17 @@ def _install_req(py_executable, unzip=False, distribute=False,
sys.path = sys.path[1:]
try:
- # check if the global Python has distribute installed or plain
- # setuptools
- import pkg_resources
- if not hasattr(pkg_resources, '_distribute'):
- location = os.path.dirname(pkg_resources.__file__)
- logger.notify("A globally installed setuptools was found (in %s)" % location)
- logger.notify("Use the --no-site-packages option to use distribute in "
- "the virtualenv.")
- except ImportError:
- pass
+ try:
+ # check if the global Python has distribute installed or plain
+ # setuptools
+ import pkg_resources
+ if not hasattr(pkg_resources, '_distribute'):
+ location = os.path.dirname(pkg_resources.__file__)
+ logger.notify("A globally installed setuptools was found (in %s)" % location)
+ logger.notify("Use the --no-site-packages option to use distribute in "
+ "the virtualenv.")
+ except ImportError:
+ pass
finally:
sys.path = _prev_sys_path