summaryrefslogtreecommitdiff
path: root/pavement.py
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-04-02 16:21:13 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-04-02 16:21:13 +0000
commitfe238812c1c2f00ea518372ba454ea2573829891 (patch)
treed54e929cc98cc55367950f4cd39e7bc14e83a0ee /pavement.py
parentd215183d0d2cfc49973bc4bc73555c2b112e546e (diff)
downloadnumpy-fe238812c1c2f00ea518372ba454ea2573829891.tar.gz
HACK: Make sure we use python.org interpreter to build the mpkg in paver
Diffstat (limited to 'pavement.py')
-rw-r--r--pavement.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/pavement.py b/pavement.py
index 9e1df308c..3861158db 100644
--- a/pavement.py
+++ b/pavement.py
@@ -52,6 +52,8 @@ TODO
- the script is messy, lots of global variables
- make it more easily customizable (through command line args)
- missing targets: install & test, sdist test, debian packaging
+ - fix bdist_mpkg: we build the same source twice -> how to make sure we use
+ the same underlying python for egg install in venv and for bdist_mpkg
"""
import os
import sys
@@ -119,6 +121,10 @@ DMG_CONTENT = paver.path.path('numpy-macosx-installer') / 'content'
RELEASE_DIR = 'release'
INSTALLERS_DIR = os.path.join(RELEASE_DIR, 'installers')
+# XXX: fix this in a sane way
+MPKG_PYTHON = {"25": "/Library/Frameworks/Python.framework/Versions/2.5/bin/python",
+ "26": "/Library/Frameworks/Python.framework/Versions/2.6/bin/python"}
+
options(sphinx=Bunch(builddir="build", sourcedir="source", docroot='doc'),
virtualenv=Bunch(script_name=BOOTSTRAP_SCRIPT,packages_to_install=["sphinx==0.5.1"]),
wininst=Bunch(pyver="2.5", scratch=True))
@@ -215,7 +221,7 @@ def latex():
def pdf():
def build_pdf():
subprocess.check_call(["make", "all-pdf"], cwd=str(DOC_BLD_LATEX))
- dry("Build pdf doc", build_latex)
+ dry("Build pdf doc", build_pdf)
PDF_DESTDIR.rmtree()
PDF_DESTDIR.makedirs()
@@ -397,7 +403,9 @@ def dmg_name():
@task
def bdist_mpkg():
- sh("python setupegg.py bdist_mpkg")
+ call_task("clean")
+ pyver = "".join([str(i) for i in sys.version_info[:2]])
+ sh("%s setupegg.py bdist_mpkg" % MPKG_PYTHON[pyver])
@task
@needs("bdist_mpkg", "pdf")