Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compiling python...



Here's a recipe for Python 2.1...

- gnutar -xvzf Python-2.1.tgz
 cd Python-2.1/
 ./configure --with-dyld --with-suffix=.x
 change Makefile line
OPT= -g -O2 -Wall -Wstrict-prototypes
to
OPT= -g -O2 -Wall -Wstrict-prototypes -no-cpp-precomp
--> this change gets around BSD header problems that were written up in
RADAR earlier
 make
 Work around small stack size (512k) which causes test_re and test_sre
to seg fault
limit stacksize 2M
 make test
 sudo make install
 cd /usr/local/bin/
 sudo mv python.x python
 sudo mv python2.1.x python2.1

- Dan

On Tuesday, May 22, 2001, at 10:17 PM, darwinos-users-
email@hidden wrote:
>
> Subject: compile python on Darwin/MacOS X 10.0.3
>
> Somebody was successful at compiling Python in Darwin?
> I'd like to know what is to change in the makefile to have it finish the
> compilation. I downloaded Python-2.1.tgz from www.python.org




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.