aboutsummaryrefslogtreecommitdiffstats
path: root/Godeps/_workspace/src/github.com/ethereum/ethash/test/python/test.sh
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-07 19:17:27 +0800
committerobscuren <geffobscura@gmail.com>2015-04-07 19:17:27 +0800
commit01b2c90179ff82e4610745aea0e3e3ca53756305 (patch)
treefe6545760935932dc14f9c1d61864e30277f1589 /Godeps/_workspace/src/github.com/ethereum/ethash/test/python/test.sh
parentc756633fb7f39caa4f0e28aab58c7393c8dae9b1 (diff)
downloadgo-tangerine-01b2c90179ff82e4610745aea0e3e3ca53756305.tar.gz
go-tangerine-01b2c90179ff82e4610745aea0e3e3ca53756305.tar.zst
go-tangerine-01b2c90179ff82e4610745aea0e3e3ca53756305.zip
Updated ethash
Diffstat (limited to 'Godeps/_workspace/src/github.com/ethereum/ethash/test/python/test.sh')
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/ethash/test/python/test.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/Godeps/_workspace/src/github.com/ethereum/ethash/test/python/test.sh b/Godeps/_workspace/src/github.com/ethereum/ethash/test/python/test.sh
index 95cea0215..05c66b550 100644
--- a/Godeps/_workspace/src/github.com/ethereum/ethash/test/python/test.sh
+++ b/Godeps/_workspace/src/github.com/ethereum/ethash/test/python/test.sh
@@ -3,6 +3,15 @@
# Strict mode
set -e
+if [ -x "$(which virtualenv2)" ] ; then
+ VIRTUALENV_EXEC=virtualenv2
+elif [ -x "$(which virtualenv)" ] ; then
+ VIRTUALENV_EXEC=virtualenv
+else
+ echo "Could not find a suitable version of virtualenv"
+ false
+fi
+
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
@@ -11,9 +20,11 @@ while [ -h "$SOURCE" ]; do
done
TEST_DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
-[ -d $TEST_DIR/python-virtual-env ] || virtualenv --system-site-packages $TEST_DIR/python-virtual-env
+[ -d $TEST_DIR/python-virtual-env ] || $VIRTUALENV_EXEC --system-site-packages $TEST_DIR/python-virtual-env
source $TEST_DIR/python-virtual-env/bin/activate
pip install -r $TEST_DIR/requirements.txt > /dev/null
+# force installation of nose in virtualenv even if existing in thereuser's system
+pip install nose -I
pip install --upgrade --no-deps --force-reinstall -e $TEST_DIR/../..
cd $TEST_DIR
nosetests --with-doctest -v --nocapture