File tree Expand file tree Collapse file tree 5 files changed +60
-4
lines changed
Expand file tree Collapse file tree 5 files changed +60
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ trepan3k_owd=$(pwd)
88# trap finish EXIT
99
1010cd $( dirname ${BASH_SOURCE[0]} )
11- if ! source ./pyenv-newer -versions ; then
11+ if ! source ./pyenv-newest -versions ; then
1212 exit $?
1313fi
1414
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ trap finish EXIT
1212
1313cd $( dirname ${BASH_SOURCE[0]} )
1414
15- if ! source ./pyenv-3.0-3.1 -versions ; then
15+ if ! source ./pyenv-3.0-3.2 -versions ; then
1616 exit $?
1717fi
1818if ! source ./setup-python-3.0.sh ; then
2727echo $__version__
2828
2929for pyversion in $PYVERSIONS ; do
30- o echo --- $pyversion ---
30+ echo --- $pyversion ---
3131 if [[ ${pyversion: 0: 4} == " pypy" ]] ; then
3232 echo " $pyversion - PyPy does not get special packaging"
3333 continue
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ PACKAGE=trepan3k
3+
4+ # FIXME put some of the below in a common routine
5+ function finish {
6+ cd $make_dist_36_owd
7+ }
8+
9+ make_trepan_dist_36_owd=$( pwd)
10+ trap finish EXIT
11+
12+ cd $( dirname ${BASH_SOURCE[0]} )
13+
14+ if ! source ./pyenv-3.6-3.10-versions ; then
15+ exit $?
16+ fi
17+ if ! source ./setup-python-3.6.sh ; then
18+ exit $?
19+ fi
20+
21+ . ./setup-python-3.6.sh
22+
23+ cd ..
24+ source trepan/version.py
25+ if [[ ! -n $__version__ ]]; then
26+ echo " You need to set __version__ first"
27+ exit 1
28+ fi
29+ echo $__version__
30+
31+ for pyversion in $PYVERSIONS ; do
32+ echo --- $pyversion ---
33+ if [[ ${pyversion: 0: 4} == " pypy" ]] ; then
34+ echo " $pyversion - PyPy does not get special packaging"
35+ continue
36+ fi
37+ if ! pyenv local $pyversion ; then
38+ exit $?
39+ fi
40+ # pip bdist_egg create too-general wheels. So
41+ # we narrow that by moving the generated wheel.
42+
43+ # Pick out first two number of version, e.g. 3.5.1 -> 35
44+ first_two=$( echo $pyversion | cut -d' .' -f 1-2 | sed -e ' s/\.//' )
45+ rm -fr build
46+ python setup.py bdist_egg bdist_wheel
47+ mv -v dist/${PACKAGE} -$__version__ -{py2.py3,$first_two }-none-any.whl
48+ done
49+
50+ python ./setup.py sdist
51+ tarball=dist/${PACKAGE} -${__version__} .tar.gz
52+
53+ if [[ -f $tarball ]]; then
54+ mv -v $tarball dist/${PACKAGE} _36-${__version__} .tar.gz
55+ fi
56+ finish
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ cd $(dirname ${BASH_SOURCE[0]})
1010owd=$( pwd)
1111trap finish EXIT
1212
13- if ! source ./pyenv-newer -versions ; then
13+ if ! source ./pyenv-newest -versions ; then
1414 exit $?
1515fi
1616if ! source ./setup-master.sh ; then
File renamed without changes.
You can’t perform that action at this time.
0 commit comments