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 _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig