[Pythonmac-SIG] FileMaker Pro and Python

Jonathan Wight JWight@bigfoot.com
Mon, 02 Apr 2001 17:30:29 -0500


On 04/02/2001 17:02, "Erik van Blokland" <erik@letterror.com> wrote:

> Sorry, I hadn't checked to see if FMPro works in Python 2.0, I was too busy
> tinkering with X (like how do I even install 2.1 beta!?)

Aha! A question I can answer. All the information you need is oddly enough
located in the README file.

Mac OS X: You need to add the "-traditional-cpp" option to the
        compiler command line for the Mac OS X Public Beta.  This is
        appearantly a bug in the default pre-processor, and is
        expected not to be a problem with future versions.  Run
        configure with "OPT='-g -traditional-cpp' ./configure
        --with-suffix=.exe --with-dyld" to add this
        option.  One of the regular expression tests fails due to the
        small stack size used by default (how to change this?), and
        the test_largefile test is only expected to work on a Unix UFS
        filesystem (how to check for this on Mac OS X?).

cd into your python directory
OPT='-g -traditional-cpp'
./configure \
     --with-suffix=.exe --with-dyld
make
sudo make install

This will create files in /usr/local/bin called python.exe and
python2.1.exe, you'll want to make a symlink without the annoying '.exe':

ln -s /usr/local/bin/python2.1.exe /usr/local/bin/python2.1
ln -s /usr/local/bin/python2.1 /usr/local/bin/python

Works like a treat.

    Jon.