diff options
author | Armin Rigo <arigo@tunes.org> | 2016-02-15 10:30:55 +0100 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2016-02-15 10:30:55 +0100 |
commit | 6bdddc4134898be19c1117d8b63be49446269ce5 (patch) | |
tree | d3b66a34e8a6c546af3037c3ade412facfdf9266 /cffi/api.py | |
parent | 9f6128ac8bd36076bf81e27ac75ddbbda4fb4ac6 (diff) | |
download | cffi-6bdddc4134898be19c1117d8b63be49446269ce5.tar.gz |
pypy on windows now stores "python27.lib" in a directory "libs"
Diffstat (limited to 'cffi/api.py')
-rw-r--r-- | cffi/api.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/cffi/api.py b/cffi/api.py index 7fc3880..70ef93a 100644 --- a/cffi/api.py +++ b/cffi/api.py @@ -551,13 +551,11 @@ class FFI(object): # if '__pypy__' in sys.builtin_module_names: if sys.platform == "win32": - # we need 'libpypy-c.lib'. Right now, distributions of - # pypy contain it as 'include/python27.lib'. You need - # to manually copy it back to 'libpypy-c.lib'. XXX Will - # be fixed in the next pypy release. - pythonlib = "libpypy-c" + # we need 'libpypy-c.lib'. Current distributions of + # pypy (>= 4.1) contain it as 'libs/python27.lib'. + pythonlib = "python27" if hasattr(sys, 'prefix'): - ensure('library_dirs', sys.prefix) + ensure('library_dirs', os.path.join(sys.prefix, 'libs')) else: # we need 'libpypy-c.{so,dylib}', which should be by # default located in 'sys.prefix/bin' |