Skip to content

Commit fc8f572

Browse files
author
Boyeon.Choi
committed
Add build.sh making wheel file
1 parent 2f1452c commit fc8f572

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

build.sh

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
set -e
3+
4+
PYVER=$(python -c 'import sys; print(sys.version_info[0])')
5+
if [ $PYVER -ne 3 ]
6+
then
7+
echo "The script should be run on python3"
8+
exit 1
9+
fi
10+
11+
if [ $# -eq 1 ]
12+
then
13+
echo $1 > ./VERSION
14+
fi
15+
16+
pip install wheel
17+
rm -rf build dist *.egg-info
18+
python setup.py sdist bdist_wheel

0 commit comments

Comments
 (0)