[Pythonmac-SIG] autoconf and distutils
bob at redivi.com
Fri Mar 5 10:43:35 EST 2004
On Mar 5, 2004, at 9:27 AM, Mark Asbach wrote:
> we're trying to port an open source application that includes an
> embedded python interpreter. I've still got troubles with the Mac OS X
> specific framework builds and my autoconf script.
> What can I do to get information on compiler and linker parameters
> necessary to compile my custom interpreter? On conventional UNIX
> installs I will need "-L/usr/local/lib/python2.x/config -lpython2.x"
> while I have to use "-framework Python" with framework builds. It's
> messy to search paths and guess from the files present, which one is
> the case. Unfortunately, I couldn't find detailed documentation of the
> distutils, where I would search for information like this.
> The best solution would be a set of python scripts that would give the
> desired flags for the interpreter it is run on. This way I could
> provide a "--with-python=/mypath/bin/pythonX.Y" configuration option
> and have the rest detected automatically.
grep "^LINKFORSHARED" `python -c "import sys;print
'%s/lib/python%d.%d/config/Makefile' % (sys.prefix,sys.version_info,
sys.version_info)"` | cut -d = -f 2
distutils probably has a better way for getting at this, though :)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2357 bytes
Desc: not available
Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20040305/fdec1698/smime.bin
More information about the Pythonmac-SIG