Skip to content

Commit 2bec958

Browse files
committed
fix for PYTHONPATH
1 parent cfcad64 commit 2bec958

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

test_release

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,31 @@
55
#
66
# Usage:
77
#
8-
# $ ./test_release 1.8.9.0
8+
# $ ./test_release 3.3.5
99
# --------------------------------------------------------------------
1010

1111
set -x
1212

1313
if [[ ! $1 ]] ; then
14-
echo "Must set version as \$1 (e.g. 1.7)"
14+
echo "Must set version as \$1 (e.g. 1.9.0.1)"
1515
exit 1
1616
fi
1717

1818
vn=$1
1919

20-
# Get the major.minor Python version
21-
py=$(python -V | cut -d " " -f 2 | cut -d "." -f 1,2)
20+
dir=~/tmp/test_cfunits
21+
rm -fr $dir
2222

23-
mkdir -p ~/tmp
23+
pip install dist/cfunits-$vn.tar.gz -t $dir --no-deps
2424

25-
cp dist/cfunits-$vn.tar.gz ~/tmp
26-
cd ~/tmp
27-
rm -fr ~/tmp/test ~/tmp/bin ~/tmp/lib ~/tmp/cfunits-$vn
25+
export PYTHONPATH=$dir:$PYTHONPATH
26+
export PATH=$dir/bin:$PATH
2827

29-
tar zxvf cfunits-$vn.tar.gz
30-
cd cfunits-$vn
28+
cd $dir/cfunits/test
3129

32-
export PYTHONPATH=~/tmp/lib/python/cfunits-$vn-py$py.egg:$PYTHONPATH
33-
34-
python setup.py install --home=~/tmp
35-
36-
cd ~/tmp/lib/python/cfunits-$vn-py$py.egg/cfunits/test
3730
python run_tests.py
31+
test_result_status=$?
3832

3933
set -x
34+
35+
exit $test_result_status

0 commit comments

Comments
 (0)