[Python-Dev] Problem building module against Mac Python 2.4 and Python 2.5 (original) (raw)

Barry Scott barry at barrys-emacs.org
Mon Oct 16 21:57:04 CEST 2006


Use an absolute path to the library rather than -framework. That is, add '/Library/Frameworks/Python.framework/Versions/2.4/ Python' to the link command instead of '-framework Python'.

Thanks I'll update my builds to do that.

Or use distutils! That's definitely advisable anyway, that way you'll automaticly get the right flags to compile and link the extension :-)

I call distutils to get some information for CFLAGS and include dirs.
I'll look at what I get back for libs and update my build script.

All my code is C++ and in the past distutils lacked C++ support so I
could not use it and have develoer my own solution to the build problem.

Does distutils work for C++ code these days?

Barry



More information about the Python-Dev mailing list