zip packages now include .pyc files

git-svn-id: https://callirhoe.googlecode.com/svn/branches/phantome@203 81c8bb96-aa45-f2e2-0eef-c4fa4a15c6df
This commit is contained in:
ph4ntome@gmail.com 2014-11-01 22:47:56 +00:00
parent c3dc09db4e
commit 1a53b5e4d8

View File

@ -16,14 +16,17 @@ make_archive() {
# Create Callirhoe package
echo "here"
DIR=`mktemp -d -t callirhoe.XXX`
echo "there"
# 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
@ -32,6 +35,11 @@ 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