benchmarks: Differentiate between libraries that are Python 3 compatible as-is vs.

http://hg.python.org/benchmarks/rev/47035700a022 changeset: 163:47035700a022 user: Brett Cannon <brett@python.org> date: Fri Aug 31 18:52:42 2012 -0400 summary: Differentiate between libraries that are Python 3 compatible as-is vs. needing 2to3 translation. files: make_perf3.sh | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/make_perf3.sh b/make_perf3.sh --- a/make_perf3.sh +++ b/make_perf3.sh @@ -30,9 +30,16 @@ cp "${srcdir}/perf.py" perf.py ${CONVERT} perf.py -SAFE_LIBS="2to3 mako pathlib" +# Libraries that are Python 3 compatible as-is. +SAFE_LIBS_AS_IS="pathlib" +# Libraries that work with Python 3 after passing through 2to3. +SAFE_LIBS_TO_TRANSLATE="2to3 mako" mkdir lib -for safe_lib in ${SAFE_LIBS}; do +for safe_lib in ${SAFE_LIBS_AS_IS}; do + cp -a "${srcdir}/lib/${safe_lib}" lib/${safe_lib} +done + +for safe_lib in ${SAFE_LIBS_TO_TRANSLATE}; do cp -a "${srcdir}/lib/${safe_lib}" lib/${safe_lib} ${CONVERT} lib/${safe_lib} done -- Repository URL: http://hg.python.org/benchmarks
participants (1)
-
brett.cannon