Skip to content

Commit 7480ad8

Browse files
committed
Also need to handle setuptools for 2.6 support
1 parent 2af7eec commit 7480ad8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

virtualenv.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,10 @@ def create_environment(home_dir, site_packages=False, clear=False,
931931
to_install = []
932932

933933
if not no_setuptools:
934-
to_install.append('setuptools')
934+
if sys.version_info[:2] == (2, 6):
935+
to_install.append('setuptools<37')
936+
else:
937+
to_install.append('setuptools')
935938

936939
if not no_pip:
937940
to_install.append('pip')
@@ -1292,7 +1295,7 @@ def install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages, clear, sy
12921295
copyfile(py_executable, python_executable, symlink)
12931296

12941297
if is_win:
1295-
for name in ['libexpat.dll',
1298+
for name in ['libexpat.dll',
12961299
'libeay32.dll', 'ssleay32.dll', 'sqlite3.dll',
12971300
'tcl85.dll', 'tk85.dll']:
12981301
src = join(prefix, name)
Binary file not shown.

0 commit comments

Comments
 (0)