mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-23 19:44:13 +03:00
Python 2.4 compat
This commit is contained in:
parent
845bee063d
commit
bf59b2239c
4
setup.py
4
setup.py
|
@ -441,8 +441,8 @@ class pil_build_ext(build_ext):
|
||||||
tmpfile)
|
tmpfile)
|
||||||
try:
|
try:
|
||||||
if ret >> 8 == 0:
|
if ret >> 8 == 0:
|
||||||
with open(tmpfile) as fp:
|
fp = open(tmpfile, 'rb')
|
||||||
multiarch_path_component = fp.readline().strip()
|
multiarch_path_component = fp.readline().strip()
|
||||||
_add_directory(self.compiler.library_dirs,
|
_add_directory(self.compiler.library_dirs,
|
||||||
'/usr/lib/' + multiarch_path_component)
|
'/usr/lib/' + multiarch_path_component)
|
||||||
_add_directory(self.compiler.include_dirs,
|
_add_directory(self.compiler.include_dirs,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user