Skip to content

Commit 05ebaf9

Browse files
committed
More administrivia
1 parent e73cd74 commit 05ebaf9

File tree

6 files changed

+65
-37
lines changed

6 files changed

+65
-37
lines changed

admin-tools/check-2.4-2.7-versions.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
# Run tests over all Python versions in branch python-2.4-2.7
23
set -e
34
function finish {
45
cd $owd
@@ -11,7 +12,9 @@ if ! source ./pyenv-2.4-2.7-versions ; then
1112
exit $?
1213
fi
1314
if ! source ./setup-python-2.4.sh ; then
14-
exit $?
15+
rc=$?
16+
finish
17+
exit $rc
1518
fi
1619

1720
cd ..
@@ -22,6 +25,8 @@ for version in $PYVERSIONS; do
2225
fi
2326
make clean && python setup.py develop
2427
if ! make check ; then
28+
finish
29+
rc=$?
2530
exit $?
2631
fi
2732
echo === $version ===

admin-tools/check-3.3-3.5-versions.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/bin/bash
2+
# Run tests over all Python versions in branch python-3.3-3.5
3+
set -e
24
function finish {
35
cd $owd
46
}
@@ -25,3 +27,4 @@ for version in $PYVERSIONS; do
2527
fi
2628
echo === $version ===
2729
done
30+
finish

admin-tools/setup-master.sh

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
#!/bin/bash
2+
# Check out master branch and dependent development master branches
3+
set -e
24
PYTHON_VERSION=3.8.18
35

6+
bs=${BASH_SOURCE[0]}
7+
if [[ $0 == $bs ]] ; then
8+
echo "This script should be *sourced* rather than run directly through bash"
9+
exit 1
10+
fi
11+
412
function checkout_version {
513
local repo=$1
614
version=${2:-master}
@@ -14,18 +22,17 @@ function checkout_version {
1422
function finish {
1523
cd $owd
1624
}
17-
18-
export PATH=$HOME/.pyenv/bin/pyenv:$PATH
1925
owd=$(pwd)
20-
bs=${BASH_SOURCE[0]}
21-
if [[ $0 == $bs ]] ; then
22-
echo "This script should be *sourced* rather than run directly through bash"
23-
exit 1
24-
fi
26+
trap finish EXIT
27+
28+
export PATH=$HOME/.pyenv/bin/pyenv:$PATHb
29+
2530
mydir=$(dirname $bs)
2631
fulldir=$(readlink -f $mydir)
2732
cd $fulldir/..
2833
(cd $fulldir/.. && checkout_version python-spark && checkout_version python-xdis &&
29-
checkout_version python-uncompyle6)
30-
cd $owd
31-
rm -v */.python-version >/dev/null 2>&1 || true
34+
checkout_version python-uncompyle6)
35+
36+
git pull
37+
rm -v */.python-version || true
38+
finish

admin-tools/setup-python-2.4.sh

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
#!/bin/bash
2+
# Check out python-2.4-to-2.7 and dependent development branches.
3+
4+
set -e
25
PYTHON_VERSION=2.4.6
36

7+
bs=${BASH_SOURCE[0]}
8+
if [[ $0 == $bs ]] ; then
9+
echo "This script should be *sourced* rather than run directly through bash"
10+
exit 1
11+
fi
12+
413
function checkout_version {
514
local repo=$1
6-
version=${2:-python-2.4}
7-
echo Checking out $version.4 on $repo ...
15+
version=${2:-python-2.4-to-2.7}
16+
echo Checking out $version on $repo ...
817
(cd ../$repo && git checkout $version && pyenv local $PYTHON_VERSION) && \
918
git pull
1019
return $?
@@ -13,16 +22,16 @@ function checkout_version {
1322
function finish {
1423
cd $owd
1524
}
16-
1725
owd=$(pwd)
18-
bs=${BASH_SOURCE[0]}
19-
if [[ $0 == $bs ]] ; then
20-
echo "This script should be *sourced* rather than run directly through bash"
21-
exit 1
22-
fi
26+
trap finish EXIT
27+
28+
export PATH=$HOME/.pyenv/bin/pyenv:$PATH
29+
2330
mydir=$(dirname $bs)
2431
fulldir=$(readlink -f $mydir)
2532
(cd $fulldir/.. && checkout_version python-spark && checkout_version python-xdis python-2.4-to-2.7 &&
26-
checkout_version python-uncompyle6)
33+
checkout_version python-uncompyle6)
34+
35+
git pull
2736
rm -v */.python-version || true
2837
finish

admin-tools/setup-python-3.0.sh

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
#!/bin/bash
2+
# Check out python-3.0-to-3.2 and dependent development branches.
3+
24
set -e
35
PYTHON_VERSION=3.0.1
4-
pyenv local $PYTHON_VERSION
6+
7+
bs=${BASH_SOURCE[0]}
8+
if [[ $0 == $bs ]] ; then
9+
echo "This script should be *sourced* rather than run directly through bash"
10+
exit 1
11+
fi
512

613
# FIXME put some of the below in a common routine
714
function checkout_version {
@@ -16,21 +23,17 @@ function checkout_version {
1623
function finish {
1724
cd $owd
1825
}
26+
owd=$(pwd)
27+
trap finish EXIT
1928

2029
export PATH=$HOME/.pyenv/bin/pyenv:$PATH
21-
owd=$(pwd)
22-
bs=${BASH_SOURCE[0]}
23-
if [[ $0 == $bs ]] ; then
24-
echo "This script should be *sourced* rather than run directly through bash"
25-
exit 1
26-
fi
2730

2831
mydir=$(dirname $bs)
2932
fulldir=$(readlink -f $mydir)
3033
cd $fulldir/..
3134
(cd $fulldir/.. && checkout_version python-spark master && checkout_version python-xdis &&
3235
checkout_version python-uncompyle6)
3336

34-
git checkout python-3.0-to-3.2 && git pull && pyenv local $PYTHON_VERSION
37+
git pull
3538
rm -v */.python-version || true
3639
finish

admin-tools/setup-python-3.3.sh

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
#!/bin/bash
2+
# Check out python-3.3-to-3.5 and dependent development branches.
23
set -e
34
PYTHON_VERSION=3.3.7
4-
pyenv local $PYTHON_VERSION
5+
6+
bs=${BASH_SOURCE[0]}
7+
if [[ $0 == $bs ]] ; then
8+
echo "This script should be *sourced* rather than run directly through bash"
9+
exit 1
10+
fi
511

612
# FIXME put some of the below in a common routine
713
function checkout_version {
@@ -16,22 +22,17 @@ function checkout_version {
1622
function finish {
1723
cd $owd
1824
}
25+
owd=$(pwd)
26+
trap finish EXIT
1927

2028
export PATH=$HOME/.pyenv/bin/pyenv:$PATH
21-
owd=$(pwd)
22-
bs=${BASH_SOURCE[0]}
23-
if [[ $0 == $bs ]] ; then
24-
echo "This script should be *sourced* rather than run directly through bash"
25-
exit 1
26-
fi
2729

28-
mydir=$(dirname $bs)
2930
fulldir=$(readlink -f $mydir)
3031
cd $fulldir/..
3132
(cd $fulldir/.. && checkout_version python-spark master && checkout_version python-xdis &&
3233
checkout_version python-uncompyle6)
3334
rm -v */.python-version || true
3435

35-
git checkout python-3.3-to-3.5 && git pull && pyenv local $PYTHON_VERSION
36+
git pull
3637
rm -v */.python-version || true
3738
finish

0 commit comments

Comments
 (0)