Skip to content

Instantly share code, notes, and snippets.

@jbeigel
Created July 29, 2009 20:39
Show Gist options
  • Save jbeigel/158383 to your computer and use it in GitHub Desktop.
Save jbeigel/158383 to your computer and use it in GitHub Desktop.
Build full FAT (32+64 bit) Python on OS X:
==========================================
readline & gettext:
export MACOSX_DEPLOYMENT_TARGET=10.5
export CFLAGS="-arch ppc7400 -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp"
export CCFLAGS="-arch ppc7400 -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe"
export CXXFLAGS="-arch ppc7400 -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe"
export LDFLAGS="-arch ppc7400 -arch ppc64 -arch i386 -arch x86_64 -bind_at_load"
V=6.0
curl -O ftp://ftp.gnu.org/pub/gnu/readline/readline-$V.tar.gz
tar xzf readline-$V
cd readline-$V
./configure
make
sudo make install
V=0.17
curl -O http://ftp.gnu.org/pub/gnu/gettext/gettext-$V.tar.gz
tar xzf gettext-$V
cd gettext-%V
./configure
make
sudo make install
Python:
V=2.6.2
./configure --prefix=/usr/local/python-$V \
--enable-framework=/usr/local/python-$V/frameworks \
--enable-universalsdk=/ MACOSX_DEPLOYMENT_TARGET=10.5 \
--with-universal-archs=all
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment