Bug 805127 - Upgrade virtualenv to 1.8.2; r=ted

Upstream tarball uncompressed in python/virtualenv. egg-info directory
was deleted. All other files are unchanged.
This commit is contained in:
Gregory Szorc
2012-10-24 14:25:40 -07:00
parent 7419fd463c
commit 1ee3fab3a9
23 changed files with 1393 additions and 319 deletions

View File

@@ -1,6 +1,7 @@
import os
import sys
import warnings
import imp
import opcode # opcode is not a virtualenv module, so we can use it to find the stdlib
# Important! To work on pypy, this must be a module that resides in the
# lib-python/modified-x.y.z directory
@@ -13,7 +14,13 @@ if os.path.normpath(distutils_path) == os.path.dirname(os.path.normpath(__file__
"The virtualenv distutils package at %s appears to be in the same location as the system distutils?")
else:
__path__.insert(0, distutils_path)
exec(open(os.path.join(distutils_path, '__init__.py')).read())
real_distutils = imp.load_module("_virtualenv_distutils", None, distutils_path, ('', '', imp.PKG_DIRECTORY))
# Copy the relevant attributes
try:
__revision__ = real_distutils.__revision__
except AttributeError:
pass
__version__ = real_distutils.__version__
from distutils import dist, sysconfig