Skip to content

Commit

Permalink
Merge pull request #374 from ptone/pypy-fix
Browse files Browse the repository at this point in the history
Fixed the name for the pypy include lib
  • Loading branch information
pnasrat committed Dec 9, 2012
2 parents 714c296 + f6e5e73 commit c30c55a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions virtualenv.py
Expand Up @@ -1189,8 +1189,9 @@ def copy_required_modules(dst_prefix):
else:
if f is not None:
f.close()
# special-case custom readline.so on OS X:
if modname == 'readline' and sys.platform == 'darwin' and not filename.endswith(join('lib-dynload', 'readline.so')):
# special-case custom readline.so on OS X, but not for pypy:
if modname == 'readline' and sys.platform == 'darwin' and not (
is_pypy or filename.endswith(join('lib-dynload', 'readline.so'))):
dst_filename = join(dst_prefix, 'lib', 'python%s' % sys.version[:3], 'readline.so')
else:
dst_filename = change_prefix(filename, dst_prefix)
Expand Down

0 comments on commit c30c55a

Please sign in to comment.