forked from cmusphinx/pocketsphinx-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pypi.sh
executable file
·27 lines (23 loc) · 808 Bytes
/
pypi.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env bash
rm -rf venv dist build *.egg-info
rm -rf ./sphinxbase/swig/python/sphinxbase.py
rm -rf ./pocketsphinx/swig/python/pocketsphinx.py
virtualenv -p /usr/bin/python2.7 venv
source venv/bin/activate
python setup.py bdist_egg build
python setup.py bdist_egg upload
python setup.py sdist build
python setup.py sdist --formats=gztar upload
python setup.py sdist --formats=zip upload
deactivate
rm -rf venv dist build *.egg-info
rm -rf ./sphinxbase/swig/python/sphinxbase.py
rm -rf ./pocketsphinx/swig/python/pocketsphinx.py
virtualenv -p /usr/bin/python3.5 venv
source venv/bin/activate
python setup.py bdist_egg build
python setup.py bdist_egg upload
deactivate
rm -rf venv dist build *.egg-info
rm -rf ./sphinxbase/swig/python/sphinxbase.py
rm -rf ./pocketsphinx/swig/python/pocketsphinx.py