Marc-Andre Lemburg <m...@egenix.com> added the comment:

Instrumenting find_file() a bit:

    if sys.platform == 'darwin':
        # Honor the MacOSX SDK setting when one was specified.
        # An SDK is a directory with the same structure as a real
        # system, but with only header files and libraries.
        sysroot = macosx_sdk_root()

    # Check the standard locations
    for dir in std_dirs:
        f = os.path.join(dir, filename)

        if sys.platform == 'darwin' and is_macosx_sdk_path(dir):
            f = os.path.join(sysroot, dir[1:], filename)

        print '*** checking standard location %s' % f
        if os.path.exists(f): return []

this gives:

*** checking additional location 
/Developer/SDKs/MacOSX10.4u.sdk/usr/local/src/egenix-build-environment/Python-2.7rc2-ucs2/Modules/_struct.c
*** checking additional location 
/Developer/SDKs/MacOSX10.4u.sdk/usr/local/src/egenix-build-environment/Python-2.7rc2-ucs2/Mac/Modules/_struct.c
*** module _struct.c in 
['/usr/local/src/egenix-build-environment/Python-2.7rc2-ucs2/Modules', 
'/usr/local/src/egenix-build-environment/Python-2.7rc2-ucs2/Mac/Modules']: 
find_file returned None
*** Extension _struct: ext.sources=['_struct.c']

So the reason for the failure is that is_macosx_sdk_path(dir) doesn't do what 
it's probably supposed to do, or the code assumes that it's getting relative 
paths in moddirslist rather the absolute paths it is getting.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9046>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to