Permalink
Browse files

refactored virtualenv build script

  • Loading branch information...
ivotkv committed Apr 21, 2016
1 parent d353d8f commit 812b2a71be1c85396d11d2438666512887c5295c
Showing with 22 additions and 15 deletions.
  1. +1 −1 virtualenv/.gitignore
  2. +21 −14 virtualenv/build.sh
View
@@ -1 +1 @@
py2neo*
py*
View
@@ -5,17 +5,24 @@ set -x
cd $(dirname "${BASH_SOURCE[0]}")
VERSIONS=${VERSIONS:-"2.0.8"}
for VERSION in $VERSIONS; do
DIRNAME="py2neo-$VERSION"
rm -rf $DIRNAME
virtualenv --python=python2.7 $DIRNAME
source $DIRNAME/bin/activate
pip install --upgrade pip
pip install ipython
pip install "py2neo==$VERSION"
pip install simplejson
pip install pytest
ln -s ../../../../../neolixir $DIRNAME/lib/python*/site-packages/
done
PYTHON_VERSION=${PYTHON_VERSION:-"2.7"}
PY2NEO_VERSION=${PY2NEO_VERSION:-"2.0.8"}
DIRNAME="python-$PYTHON_VERSION-py2neo-$PY2NEO_VERSION"
# build clean virtualenv
rm -rf $DIRNAME
virtualenv --python=python$PYTHON_VERSION $DIRNAME
source $DIRNAME/bin/activate
# install standard packages
pip install --upgrade pip
pip install ipython
pip install pytest
# install neolixir dependencies
pip install "py2neo==$PY2NEO_VERSION"
pip install simplejson
# symlink neolixir into virtualenv for convenience
ln -s ../../../../../neolixir $DIRNAME/lib/python$PYTHON_VERSION/site-packages/

0 comments on commit 812b2a7

Please sign in to comment.