From 1fb45c2d819db0e75ea7654024f36c0867a5280f Mon Sep 17 00:00:00 2001 From: "ph4ntome@gmail.com" Date: Sat, 1 Nov 2014 22:53:05 +0000 Subject: [PATCH] .pyc generation went inside make_archive git-svn-id: https://callirhoe.googlecode.com/svn/branches/phantome@204 81c8bb96-aa45-f2e2-0eef-c4fa4a15c6df --- make_pkg | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/make_pkg b/make_pkg index 33d812c..7098930 100755 --- a/make_pkg +++ b/make_pkg @@ -5,6 +5,10 @@ make_archive() { base="$1" tempdir="$2" curdir=`pwd` + for i in `find $tempdir -type f -name "*.py" | grep -v "__"` + do + python2.7 -m py_compile $i + done cd $tempdir zip -q -r $curdir/$base.zip * cd $curdir @@ -17,16 +21,10 @@ make_archive() { # Create Callirhoe package DIR=`mktemp -d -t callirhoe.XXX` -# TODO: do we need .pyc files? (my guess is yes, how do we force creation?) cp -R geom lang layouts lib style "$DIR" cp callirhoe.py "$DIR/__main__.py" ./make_resources_list > "$DIR/lib/resources.py" -for i in `find $DIR -type f -name "*.py" | grep -v "__"` -do - python2.7 -m py_compile $i -done - make_archive callirhoe "$DIR" # Create Calmagick package @@ -35,11 +33,6 @@ mkdir "$DIR/lib" cp lib/__init__.py lib/geom.py "$DIR/lib" cp calmagick.py "$DIR/__main__.py" -for i in `find $DIR -type f -name "*.py" | grep -v "__"` -do - python2.7 -m py_compile $i -done - make_archive calmagick "$DIR" # Create Makefile