Skip to content

Commit 356288e

Browse files
committed
Merge branch 'master' into python-3.7-to-3.10
2 parents 3875a20 + d5923ad commit 356288e

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
#!/bin/bash
2-
# Run tests over all Python versions in branch python-3.7-3.10
3-
set -e
42
function finish {
5-
cd $decompyle3_check_owd
3+
if [[ -n ${python_control_flow_owd} ]] && [[ -d $python_control_flow_owd ]]; then
4+
cd $python_control_flow_owd
5+
fi
66
}
7-
decompyle3_check_owd=$(pwd)
8-
trap finish EXIT
7+
8+
# FIXME put some of the below in a common routine
9+
python_control_flow_owd=$(pwd)
10+
# trap finish EXIT
911

1012
cd $(dirname ${BASH_SOURCE[0]})
1113
if ! source ./pyenv-3.7-3.10-versions ; then
1214
exit $?
1315
fi
14-
if ! source ./setup-python-3.7.sh ; then
15-
exit $?
16-
fi
16+
17+
. ./setup-python-3.7.sh
1718

1819
cd ..
1920
for version in $PYVERSIONS; do
20-
echo --- $version ---
2121
if ! pyenv local $version ; then
2222
exit $?
2323
fi
24-
make clean && python setup.py develop
25-
if ! make check ; then
24+
python --version
25+
make clean && pip install -e .
26+
if ! make check; then
2627
exit $?
2728
fi
2829
echo === $version ===
2930
done
30-
finish

0 commit comments

Comments
 (0)