Merge pull request #844 from divergentdave/patch-1

setup.py: Close open file handle before deleting
This commit is contained in:
Hugo van Kemenade 2014-08-11 09:49:26 +03:00
commit acd4f5f26f

View File

@ -706,6 +706,7 @@ class pil_build_ext(build_ext):
if ret >> 8 == 0:
fp = open(tmpfile, 'r')
multiarch_path_component = fp.readline().strip()
fp.close()
_add_directory(
self.compiler.library_dirs,
'/usr/lib/' + multiarch_path_component)