diff options
Diffstat (limited to 'helperscripts')
-rwxr-xr-x | helperscripts/windows-virtualenv/__main__.py | 6 | ||||
-rwxr-xr-x | helperscripts/windows-virtualenv/virtualenv.py | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/helperscripts/windows-virtualenv/__main__.py b/helperscripts/windows-virtualenv/__main__.py index 76c91b7..9305f6c 100755 --- a/helperscripts/windows-virtualenv/__main__.py +++ b/helperscripts/windows-virtualenv/__main__.py @@ -156,16 +156,16 @@ def parse_args(): def writeout(msg, *args): """write a line to stdout.""" - print msg % args + print(msg % args) def writeout_and_stay(msg, *args): """write a line to stdout and stay on the same line.""" # clear out old line - print " " * 70 + "\r", + print(" " * 70 + "\r"), # write out new line - print (msg % args) + "\r", + print((msg % args) + "\r"), sys.stdout.flush() diff --git a/helperscripts/windows-virtualenv/virtualenv.py b/helperscripts/windows-virtualenv/virtualenv.py index 66f3e3d..54310ed 100755 --- a/helperscripts/windows-virtualenv/virtualenv.py +++ b/helperscripts/windows-virtualenv/virtualenv.py @@ -619,6 +619,7 @@ def install_distribute(py_executable, unzip=False, _install_req(py_executable, unzip, distribute=True, search_dirs=search_dirs, never_download=never_download) + _pip_re = re.compile(r'^pip-.*(zip|tar.gz|tar.bz2|tgz|tbz)$', re.I) @@ -1596,6 +1597,7 @@ def make_environment_relocatable(home_dir): fixup_pth_and_egg_link(home_dir) # FIXME: need to fix up distutils.cfg + OK_ABS_SCRIPTS = ['python', 'python%s' % sys.version[:3], 'activate', 'activate.bat', 'activate_this.py'] |