which Python for OS X to build installers?

Hi, With only a few changes (see diff below) to pavement.py I managed to build a dmg installer. For this I used the Python in the bootstrap virtualenv however, instead of the one in /Library/Frameworks/Python.framework/. Does this matter? I don't have a framework build installed, the 4-way universal build did not work for me out of the box a while ago, and installer downloads from python.org are blocked here (thanks Chinese Govt., the Great Firewall is an impressive productivity killer). So I stuck with the default Apple Python till now. For making releases, would I need the framework build? Do I need 32- and 64-bit versions of Python 2.4, 2.5 and 2.6? Cheers, Ralf diff --git a/pavement.py b/pavement.py index f6c1433..bc931ec 100644 --- a/pavement.py +++ b/pavement.py @@ -88,12 +88,13 @@ SUPERPACK_BUILD = 'build-superpack' SUPERPACK_BINDIR = os.path.join(SUPERPACK_BUILD, 'binaries') options(bootstrap=Bunch(bootstrap_dir="bootstrap"), - virtualenv=Bunch(packages_to_install=["sphinx", "numpydoc"], no_site_packages=True), + virtualenv=Bunch(packages_to_install=["sphinx", "numpydoc"], + no_site_packages=False), sphinx=Bunch(builddir="build", sourcedir="source", docroot='doc'), superpack=Bunch(builddir="build-superpack"), installers=Bunch(releasedir="release", installersdir=os.path.join("release", "installers")), - doc=Bunch(doc_root="doc", + doc=Bunch(doc_root="doc", sdir=os.path.join("doc", "source"), bdir=os.path.join("doc", "build"), bdir_latex=os.path.join("doc", "build", "latex"), @@ -106,7 +107,7 @@ options(bootstrap=Bunch(bootstrap_dir="bootstrap"), MPKG_PYTHON = { "2.5": ["/Library/Frameworks/Python.framework/Versions/2.5/bin/python"], - "2.6": ["/Library/Frameworks/Python.framework/Versions/2.6/bin/python"] + "2.6": ["python"] } SSE3_CFG = {'ATLAS': r'C:\local\lib\yop\sse3'} @@ -206,7 +207,7 @@ def bdist_superpack(options): copy_bdist("sse2") bdist_wininst_arch(pyver, 'sse3') copy_bdist("sse3") - + idirs = options.installers.installersdir pyver = options.python_version prepare_nsis_script(pyver, FULLVERSION) @@ -273,8 +274,8 @@ def bootstrap(options): options.virtualenv.script_name = os.path.join(options.bootstrap_dir, bscript) - options.virtualenv.no_site_packages = True - options.bootstrap.no_site_packages = True + options.virtualenv.no_site_packages = False + options.bootstrap.no_site_packages = False call_task('paver.virtual.bootstrap') sh('cd %s; %s %s' % (bdir, sys.executable, bscript))

On Sun, Jan 31, 2010 at 11:43 PM, Ralf Gommers <ralf.gommers@googlemail.com> wrote:
Hi,
With only a few changes (see diff below) to pavement.py I managed to build a dmg installer. For this I used the Python in the bootstrap virtualenv however, instead of the one in /Library/Frameworks/Python.framework/. Does this matter?
Yes it does. The binary installers should target the python from python.org, nothing else.
For making releases, would I need the framework build? Do I need 32- and 64-bit versions of Python 2.4, 2.5 and 2.6?
The python from python.org do not support 64 bits (yet), so just build for ppc/x86. I never bothered with ppc64, and I think we can actually give up on ppc soon. cheers, David

On Mon, Feb 1, 2010 at 12:33 PM, David Cournapeau <cournape@gmail.com>wrote:
On Sun, Jan 31, 2010 at 11:43 PM, Ralf Gommers <ralf.gommers@googlemail.com> wrote:
Hi,
With only a few changes (see diff below) to pavement.py I managed to build a dmg installer. For this I used the Python in the bootstrap virtualenv however, instead of the one in /Library/Frameworks/Python.framework/. Does this matter?
Yes it does. The binary installers should target the python from python.org, nothing else.
For making releases, would I need the framework build? Do I need 32- and 64-bit versions of Python 2.4, 2.5 and 2.6?
The python from python.org do not support 64 bits (yet), so just build for ppc/x86. I never bothered with ppc64, and I think we can actually give up on ppc soon.
Thanks David, that's clear. Can anyone please confirm that the MD5 checksum for the OS X installer for 2.6.4 at www.python.org/download/releases/ is 745494373683081a04cc71522f7c440e? I found an alternative download at openlogic.com, but if it's not the same as the python.org version then I won't bother with it. Cheers, Ralf
participants (2)
-
David Cournapeau
-
Ralf Gommers