Skip to content

Commit

Permalink
Merge pull request #1103 from mattip/pypy-dlls
Browse files Browse the repository at this point in the history
BUG: pypy dlls are named differently
  • Loading branch information
pjenvey authored Dec 14, 2017
2 parents e916509 + 4e6711d commit e8163e8
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -1248,16 +1248,24 @@ def install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages, clear, sy

# we need to copy the DLL to enforce that windows will load the correct one.
# may not exist if we are cygwin.
py_executable_dlls = [
(
'python%s.dll' % (sys.version_info[0]),
'python%s_d.dll' % (sys.version_info[0])
),
(
'python%s%s.dll' % (sys.version_info[0], sys.version_info[1]),
'python%s%s_d.dll' % (sys.version_info[0], sys.version_info[1])
)
]
if is_pypy:
py_executable_dlls = [
(
'libpypy-c.dll',
'libpypy_d-c.dll',
),
]
else:
py_executable_dlls = [
(
'python%s.dll' % (sys.version_info[0]),
'python%s_d.dll' % (sys.version_info[0])
),
(
'python%s%s.dll' % (sys.version_info[0], sys.version_info[1]),
'python%s%s_d.dll' % (sys.version_info[0], sys.version_info[1])
)
]

for py_executable_dll, py_executable_dll_d in py_executable_dlls:
pythondll = os.path.join(os.path.dirname(sys.executable), py_executable_dll)
Expand All @@ -1281,7 +1289,7 @@ def install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages, clear, sy
copyfile(py_executable, python_executable, symlink)

if is_win:
for name in ['libexpat.dll', 'libpypy.dll', 'libpypy-c.dll',
for name in ['libexpat.dll',
'libeay32.dll', 'ssleay32.dll', 'sqlite3.dll',
'tcl85.dll', 'tk85.dll']:
src = join(prefix, name)
Expand Down

0 comments on commit e8163e8

Please sign in to comment.