Skip to content

Commit b029ee8

Browse files
committed
BLD: add build_dist.sh script
1 parent 8a46de4 commit b029ee8

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

build_dist.sh

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
# build the distribution
4+
LAST=`git tag --sort v:refname | grep -v rc | tail -1`
5+
6+
echo "Building distribution for: $LAST"
7+
git checkout $LAST
8+
9+
read -p "Ok to continue (y/n)? " answer
10+
case ${answer:0:1} in
11+
y|Y )
12+
echo "Building distribution"
13+
python setup.py clean
14+
python setup.py build_ext --inplace
15+
python setup.py sdist --formats=zip,gztar
16+
;;
17+
* )
18+
echo "Not building distribution"
19+
;;
20+
esac

0 commit comments

Comments
 (0)