Skip to content

Commit 8b78695

Browse files
committed
Administrivia
1 parent 1f9aafe commit 8b78695

2 files changed

Lines changed: 7 additions & 15 deletions

File tree

admin-tools/setup-python-3.3.sh

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,18 @@
11
#!/bin/bash
22
PYTHON_VERSION=3.3
33

4-
# FIXME put some of the below in a common routine
5-
function checkout_version {
6-
local repo=$1
7-
version=${2:-python-3.3-to-3.5}
8-
echo Checking out $version on $repo ...
9-
(cd ../$repo && git checkout $version && pyenv local $PYTHON_VERSION) && \
10-
git pull
11-
return $?
12-
}
13-
14-
export PATH=$HOME/.pyenv/bin/pyenv:$PATH
15-
trepan3k_owd=$(pwd)
164
bs=${BASH_SOURCE[0]}
175
if [[ $0 == $bs ]] ; then
186
echo "This script should be *sourced* rather than run directly through bash"
197
exit 1
208
fi
219

10+
export PATH=$HOME/.pyenv/bin/pyenv:$PATH
11+
trepan3k_owd=$(pwd)
12+
2213
mydir=$(dirname $bs)
14+
cd $mydir
15+
. ./checkout_common.sh
2316
(cd $mydir/.. && \
2417
setup_version python-uncompyle6 python-3.3 && \
2518
setup_version python-xdis python-3.3 && \
@@ -33,4 +26,4 @@ mydir=$(dirname $bs)
3326
cd $trepan3k_owd
3427
rm -v */.python-version 2>/dev/null || true
3528

36-
git checkout python-3.3-to-3.5 && pyenv local $PYTHON_VERSION && git pull
29+
checkout_finish python-3.3-to-3.5

admin-tools/setup-python-3.6.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
#!/bin/bash
22
# Check out 3.6-to-3.10 branch and dependent development branches
3+
PYTHON_VERSION=3.6
34

45
bs=${BASH_SOURCE[0]}
56
if [[ $0 == $bs ]] ; then
67
echo "This script should be *sourced* rather than run directly through bash"
78
exit 1
89
fi
910

10-
PYTHON_VERSION=3.6
11-
1211
export PATH=$HOME/.pyenv/bin/pyenv:$PATH
1312
trepan3k_owd=$(pwd)
1413
mydir=$(dirname $bs)

0 commit comments

Comments
 (0)