Skip to content

Commit

Permalink
Use pyz instead of virtualenv tar to download/setup virtual env for t…
Browse files Browse the repository at this point in the history
…ests.
  • Loading branch information
nlutsenko committed Aug 12, 2021
1 parent febe680 commit b4ea2e3
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions TestSupport/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#

VIRTUALENV_PATH=$1
VIRTUALENV_VERSION=15.0.1

if [ -d "$VIRTUALENV_PATH" ]; then
echo "Virtual Env already installed"
Expand All @@ -18,16 +17,11 @@ else

pushd $VIRTUALENV_PATH

curl -L -o virtualenv.tar.gz https://pypi.python.org/packages/source/v/virtualenv/virtualenv-$VIRTUALENV_VERSION.tar.gz
tar xvfz virtualenv.tar.gz

pushd virtualenv-$VIRTUALENV_VERSION
python setup.py install --user
popd
curl -L -o virtualenv.pyz https://bootstrap.pypa.io/virtualenv.pyz

popd

python $VIRTUALENV_PATH/virtualenv-$VIRTUALENV_VERSION/virtualenv.py $VIRTUALENV_PATH
python $VIRTUALENV_PATH/virtualenv.pyz $VIRTUALENV_PATH

source $VIRTUALENV_PATH/bin/activate
pip install autobahntestsuite
Expand Down

0 comments on commit b4ea2e3

Please sign in to comment.