mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-05 13:43:28 +03:00
Merge pull request #206 from wiredfool/gentoo_3x
Workaround for: http://bugs.python.org/16754 in 3.2.x < 3.2.4 and 3.3.0.
This commit is contained in:
commit
14e6dcfa52
10
setup.py
10
setup.py
|
@ -45,6 +45,16 @@ def _find_include_file(self, include):
|
||||||
|
|
||||||
|
|
||||||
def _find_library_file(self, library):
|
def _find_library_file(self, library):
|
||||||
|
# Fix for 3.2.x <3.2.4, 3.3.0, shared lib extension is the python shared lib
|
||||||
|
# extension, not the system shared lib extension: e.g. .cpython-33.so vs .so
|
||||||
|
# See Python bug http://bugs.python.org/16754
|
||||||
|
if 'cpython' in self.compiler.shared_lib_extension:
|
||||||
|
existing = self.compiler.shared_lib_extension
|
||||||
|
self.compiler.shared_lib_extension = "." + existing.split('.')[-1]
|
||||||
|
ret = self.compiler.find_library_file(self.compiler.library_dirs, library)
|
||||||
|
self.compiler.shared_lib_extension = existing
|
||||||
|
return ret
|
||||||
|
else:
|
||||||
return self.compiler.find_library_file(self.compiler.library_dirs, library)
|
return self.compiler.find_library_file(self.compiler.library_dirs, library)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user