[New-bugs-announce] [issue19389] find_file might return a different directory than the tested file
Mathieu Virbel
report at bugs.python.org
Fri Oct 25 17:49:46 CEST 2013
New submission from Mathieu Virbel:
With Maverick OSX (latest version), there is no /usr/include/zlib.h anymore. If you try to compile Python with -sysroot, it trigger a error message:
error: /usr/include/zlib.h: No such file or directory
The issue is in setup.py, where find_file is checking the existence of a filename, but if the filename has been found in a sysroot, it will return the path _without_ the sysroot.
In this case (zlib), find_file correctly find the zlib.h in /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include/zlib.h, but return "/usr/include", and then the setup.py open '/usr/include/zlib.h', which fail.
----------
components: Build
files: fix-setup-find-file-path.patch
keywords: patch
messages: 201245
nosy: Mathieu.Virbel
priority: normal
severity: normal
status: open
title: find_file might return a different directory than the tested file
type: behavior
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file32352/fix-setup-find-file-path.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19389>
_______________________________________
More information about the New-bugs-announce
mailing list