diff options
author | Donald Stufft <donald@stufft.io> | 2013-10-06 16:34:07 -0400 |
---|---|---|
committer | Donald Stufft <donald@stufft.io> | 2013-10-06 16:34:07 -0400 |
commit | b5db81cb68bca487418f6d280f767b5e171dd434 (patch) | |
tree | a1cda3bd6ce26e16f306117f6656872b2eed9dfc /cffi/vengine_cpy.py | |
parent | f95a62857097a67c0ce080b5282ca60d806d65d1 (diff) | |
download | cffi-b5db81cb68bca487418f6d280f767b5e171dd434.tar.gz |
Fixes #110 - Support different so suffixes
Diffstat (limited to 'cffi/vengine_cpy.py')
-rw-r--r-- | cffi/vengine_cpy.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cffi/vengine_cpy.py b/cffi/vengine_cpy.py index e2dd16b..e8f3575 100644 --- a/cffi/vengine_cpy.py +++ b/cffi/vengine_cpy.py @@ -15,7 +15,7 @@ class VCPythonEngine(object): def patch_extension_kwds(self, kwds): pass - def find_module(self, module_name, path, so_suffix): + def find_module(self, module_name, path, so_suffixes): try: f, filename, descr = imp.find_module(module_name, path) except ImportError: @@ -25,7 +25,7 @@ class VCPythonEngine(object): # Note that after a setuptools installation, there are both .py # and .so files with the same basename. The code here relies on # imp.find_module() locating the .so in priority. - if descr[0] != so_suffix: + if descr[0] not in so_suffixes: return None return filename |