[pypy-commit] pypy default: Tweak the Makefile to run "rpython" using python rather than pypy, if
arigo
noreply at buildbot.pypy.org
Fri Nov 1 18:27:58 CET 2013
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r67795:f6ace317e67d
Date: 2013-11-01 18:23 +0100
http://bitbucket.org/pypy/pypy/changeset/f6ace317e67d/
Log: Tweak the Makefile to run "rpython" using python rather than pypy,
if there is no pypy installed. Gives a proper warning in this case.
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,29 @@
all: pypy-c
+PYPY_EXECUTABLE := $(shell which pypy)
+URAM := $(shell python -c "import sys; print 4.5 if sys.maxint>1<<32 else 2.5")
+
+ifeq ($(PYPY_EXECUTABLE),)
+RUNINTERP = python
+else
+RUNINTERP = $(PYPY_EXECUTABLE)
+endif
+
pypy-c:
- @echo "Building PyPy with JIT, it'll take about 40 minutes and 4G of RAM"
- @sleep 3
- rpython/bin/rpython -Ojit pypy/goal/targetpypystandalone.py
+ @echo
+ @echo "============================================================="
+ifeq ($(PYPY_EXECUTABLE),)
+ @echo "Building a regular (jitting) version of PyPy, using CPython."
+ @echo "This takes around 2 hours and $(URAM) GB of RAM."
+ @echo "Note that pre-installing a PyPy binary would reduce this time"
+ @echo "and produce basically the same result."
+else
+ @echo "Building a regular (jitting) version of PyPy, using"
+ @echo "$(PYPY_EXECUTABLE) to run the translation itself."
+ @echo "This takes around 45 minutes and $(URAM) GB of RAM."
+endif
+ @echo "============================================================="
+ @echo
+ @sleep 5
+ $(RUNINTERP) rpython/bin/rpython -Ojit pypy/goal/targetpypystandalone.py
More information about the pypy-commit
mailing list