summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas NOEL <tnoel@entrouvert.com>2014-01-06 14:29:45 (GMT)
committerThomas NOEL <tnoel@entrouvert.com>2014-01-06 14:29:45 (GMT)
commitb6b7bbef8b8aa0ead3a35828ef57bb00beaa7d1c (patch)
tree9358466d886a618f50338d18509c866aadc2e7df
parentec96a2d161ddf29e73bd75fff45e738b8d859b5b (diff)
downloadunivnautes-old-b6b7bbef8b8aa0ead3a35828ef57bb00beaa7d1c.zip
univnautes-old-b6b7bbef8b8aa0ead3a35828ef57bb00beaa7d1c.tar.gz
univnautes-old-b6b7bbef8b8aa0ead3a35828ef57bb00beaa7d1c.tar.bz2
build_virtualenv.sh: clean after install
-rwxr-xr-xvirtualenv/build_virtualenv.sh15
1 files changed, 7 insertions, 8 deletions
diff --git a/virtualenv/build_virtualenv.sh b/virtualenv/build_virtualenv.sh
index b516211..d874444 100755
--- a/virtualenv/build_virtualenv.sh
+++ b/virtualenv/build_virtualenv.sh
@@ -40,19 +40,18 @@ done
echo "** populate www directory"
touch www/index.html
-ln -s ../pffedportal/media www/
+mkdir www/media
ln -s /var/db/cpelements www/media/local
-echo "** cleaning..."
+echo "*** manually add lasso and sqlite3 modules"
+cp -av /usr/local/lib/python2.7/site-packages/*lasso* ./lib/python2.7/site-packages/
+cp -av /usr/local/lib/python2.7/sqlite3 ./lib/python2.7/
+
+echo "** cleaning pyc/pyo"
find . -name "*.pyc" -exec rm {} \;
find . -name "*.pyo" -exec rm {} \;
cd $LOCAL
virtualenv --relocatable $VE
-echo "*** manually add lasso and sqlite3 modules"
cd $VE
-cp -av /usr/local/lib/python2.7/site-packages/*lasso* ./lib/python2.7/site-packages/
-cp -av /usr/local/lib/python2.7/sqlite3 ./lib/python2.7/
-
-echo "** /usr/local/univnautes is ready"
-echo " bye bye"
+echo "** $LOCAL/$VE is ready"