[Pythonmac-SIG] Can't build 2.4.3 against X11 Tcl/Tk

Ronald Oussoren ronaldoussoren at mac.com
Sun Jun 18 16:52:10 CEST 2006


On 18-jun-2006, at 15:54, Kevin Walzer wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Ronald Oussoren wrote:
>>
>
>> For 2.5 --universalsdk also works for normal unix builds and I don't
>> think I changed anything substantial for that.
>>
>> Are you (Kevin) sure that the build picks up the right copy of tcl/ 
>> tk?
>> /usr/local/tcl-tk-unix/ isn't on the default search path and setup.py
>> ignores extra CFLAGS and LDFLAGS when looking for libraries.
>>
>>
>
> Why does it ignore extra CFLAGS and LDFLAGS? I see code in def
> detect_modules in setup.py that seems to register the extra flags:
>
> if platform == 'darwin':
>             # Actually any unix-y platform will do :-)
>             # This picks up additional library and include directories
>             # from the user-specified CFLAGS.
>             # XXX: shouldn't this be in distutils?
>             opt, = sysconfig.get_config_vars('OPT')
>             cppflags, = sysconfig.get_config_vars('CPPFLAGS')
>             for item in (opt.split() + cppflags.split()):
>                 if item.startswith('-I'):
>                     inc_dirs.append(item[2:])
>             ldflags, = sysconfig.get_config_vars('LDFLAGS')
>             for item in ldflags.split():
>                 if item.startswith('-L'):
>                     lib_dirs.append(item[2:])

That's in 2.5 because I got annoyed by the build process not picking  
up sqlite and other 3th-party libraries when they are not in the  
expected location. This code isn't in 2.4.

Ronald


More information about the Pythonmac-SIG mailing list