[Python-checkins] benchmarks: Switch to using Python 3 for translation since if you are building the

brett.cannon python-checkins at python.org
Fri May 3 19:07:31 CEST 2013


http://hg.python.org/benchmarks/rev/dccd52b95a71
changeset: 204:dccd52b95a71
user: Brett Cannon <brett at python.org>
date: Fri May 03 13:04:25 2013 -0400
summary:
 Switch to using Python 3 for translation since if you are building the
benchmarks for Python 3 you will actually have it (unlike Python 2.6).
files:
 make_perf3.sh | 6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/make_perf3.sh b/make_perf3.sh
--- a/make_perf3.sh
+++ b/make_perf3.sh
@@ -8,7 +8,7 @@
 # mkdir py3benchmarks;
 # cd py3benchmarks
 # ../py2benchmarks/make_perf3.sh ../py2benchmarks
-# python3.1 perf.py -b py3k old_py3k new_py3k
+# python3 perf.py -b py3k old_py3k new_py3k
 
 set -e
 
@@ -23,10 +23,10 @@
 exit 1
 fi
 
-py2_6=${PYTHON:-python2.6}
+py3=${PYTHON:-python3}
 
 # Update the files in place.
-CONVERT="${py2_6} ${srcdir}/lib/2to3/2to3 --write --nobackups --no-diffs"
+CONVERT="${py3} -m lib2to3 --write --nobackups --no-diffs"
 
 rm -rf perf.py* lib performance
 
-- 
Repository URL: http://hg.python.org/benchmarks


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /