forked from mindsdb/mindsdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
39 lines (26 loc) · 730 Bytes
/
install.sh
File metadata and controls
39 lines (26 loc) · 730 Bytes
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
28
29
30
31
32
33
34
35
36
rm -rf build
rm -rf dist
rm -rf mindsdb.egg-info
# python3 setup.py --help-commands
echo "mode (prod/dev)?"
read mode
if [ "$mode" = "prod" ]; then
python3 setup.py develop --uninstall
python3 setup.py clean
python3 setup.py build
#python3 setup.py install
#python3 setup.py bdist_egg -p win32
python3 setup.py sdist bdist_wheel
echo "Do you want to publish this version (yes/no)?"
read publish
if [ "$publish" = "yes" ]; then
echo "Publishing mindsdb to Pypi"
python3 -m twine upload dist/*
fi
fi
if [ "$mode" = "dev" ]; then
pip3 uninstall mindsdb
pip3 uninstall mindsdb --user
python3 setup.py develop --uninstall
python3 setup.py develop
fi