Skip to content
This repository was archived by the owner on Nov 4, 2022. It is now read-only.

Commit fd23fd7

Browse files
committed
Merge pull request #6 from portante/travis-ci
Detect multiple python versions
2 parents 2dc9ed2 + ef9e07c commit fd23fd7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

unittests

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ mkdir -p $tmp
77

88
# trap "rm -rf $tmp" EXIT INT QUIT
99

10+
ver=$(python -c 'import sys; print("%d.%d" % sys.version_info[:2])')
1011
python setup.py build
1112

1213
# So *always* use the in-tree version of configtools here.
1314
# prefix better be right at this point
14-
if [[ ! -f build/scripts-2.7/getconf.py ]]
15+
if [[ ! -f build/scripts-$ver/getconf.py ]]
1516
then
16-
echo "Cannot find getconf.py: build/scripts-2.7/getconf.py" 1>&2
17+
echo "Cannot find getconf.py: build/scripts-$ver/getconf.py" 1>&2
1718
exit 1
1819
fi
1920

@@ -26,7 +27,7 @@ ppathins() {
2627
export PYTHONPATH
2728
ppathins $PWD/build/lib
2829

29-
bin=$PWD/build/scripts-2.7
30+
bin=$PWD/build/scripts-$ver
3031

3132
function run_test {
3233
testnum=$1

0 commit comments

Comments
 (0)