Skip to content

Commit 113bd78

Browse files
committed
Administrative work to handle wo versions of code
1 parent 05fd150 commit 113bd78

2 files changed

Lines changed: 42 additions & 1 deletion

File tree

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ cd $(dirname ${BASH_SOURCE[0]})
1010
owd=$(pwd)
1111
trap finish EXIT
1212

13-
if ! source ./pyenv-versions ; then
13+
if ! source ./pyenv-newer-versions ; then
14+
exit $?
15+
fi
16+
if ! source ./setup-master.sh ; then
1417
exit $?
1518
fi
1619

admin-tools/make-dist-older.sh

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#!/bin/bash
2+
PACKAGE=trepan
3+
4+
# FIXME put some of the below in a common routine
5+
function finish {
6+
cd $owd
7+
}
8+
9+
cd $(dirname ${BASH_SOURCE[0]})
10+
owd=$(pwd)
11+
trap finish EXIT
12+
13+
if ! source ./pyenv-older-versions ; then
14+
exit $?
15+
fi
16+
if ! source ./setup-python-3.2.sh ; then
17+
exit $?
18+
fi
19+
20+
cd ..
21+
source $PACKAGE/version.py
22+
echo $VERSION
23+
24+
for pyversion in $PYVERSIONS; do
25+
if ! pyenv local $pyversion ; then
26+
exit $?
27+
fi
28+
# pip bdist_egg create too-general wheels. So
29+
# we narrow that by moving the generated wheel.
30+
31+
# Pick out first two number of version, e.g. 3.5.1 -> 35
32+
first_two_dot=$(echo $pyversion | cut -d'.' -f 1-2 )
33+
first_two=$(echo $pyversion | cut -d'.' -f 1-2 | sed -e 's/\.//')
34+
rm -fr build
35+
python setup.py bdist_egg bdist_wheel
36+
done
37+
38+
# mv -v dist/${PACKAGE}-$VERSION.tar.gz dist/${PACKAGE}3k-$VERSION.tar.gz

0 commit comments

Comments
 (0)