Permalink
Browse files

Merge pull request #374 from ptone/pypy-fix

Fixed the name for the pypy include lib
  • Loading branch information...
2 parents 714c296 + f6e5e73 commit c30c55adf7ce6b6ee4d2f9b29cb4cc09f8a0d876 @pnasrat pnasrat committed Dec 9, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 virtualenv.py
View
@@ -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)

0 comments on commit c30c55a

Please sign in to comment.