[Pythonmac-SIG] Does anyone on the planet know how to build python-2.5 (WITH READLINE)?

Ronald Oussoren ronaldoussoren at mac.com
Fri Dec 1 17:04:03 CET 2006

On  1 Dec 2006, at 2:49 AM, Gary Poster wrote:

> On Nov 15, 2006, at 2:32 PM, Todd Thal wrote:
>> I am having one "hades" of a heckuva time getting readline support  
>> for
>> Python-2.5 on a Mac OS
> Thanks to Ronald and Skip for replying to this thread.  It took me a
> little bit to connect the dots from their replies, so I thought I'd
> share my experiences.  Maybe this can help someone, and maybe also
> lead to Ronald or someone else clarifying the right way to use his
> CFLAGS and LDFLAGS patch.
> I'm using darwinports, so first I had to
> sudo port install readline
> Once that was done, I wanted to build a local, non-framework Python
> with readline.  darwinports uses /opt/local, so Ronald's approach led
> me to this best guess:
> $ CFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib ./configure --
> prefix=/Users/gary/py

This should do the trick, more or less. The build script for the  
python.org installer uses:

./configure --prefix=/Users/gary/py LDFLAGS=-L/opt/local/lib OPT=-I/ 

> $ make

If you're using macports you might as well do 'port install python2.4'.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3562 bytes
Desc: not available
Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20061201/fd6fbff3/attachment.bin 

More information about the Pythonmac-SIG mailing list