-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·41 lines (33 loc) · 803 Bytes
/
build.sh
File metadata and controls
executable file
·41 lines (33 loc) · 803 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
37
38
39
40
41
#!/bin/bash
command -v source >/dev/null 2>&1 || {
echo "I require source but it's not installed. Aborting." >&2; exit 1;
}
which python3
which pip3
python -V
pip -V
python3 -V
pip3 -V
curl https://bootstrap.pypa.io/pip/3.5/get-pip.py -o get-pip.py
python3 get-pip.py
hash -r
pip3 -V
#pip3 list
# Python 2 and 3.5 are being deprecated
#pip3 install -U pip
pip3 install virtualenv
pip3 list
#which virtualenv
virtualenv -p python3 env
#virtualenv -p python2 env
source env/bin/activate
# https://github.com/pypa/warehouse/issues/5890#issuecomment-494868157
pip3 install certifi==2021.10.8
pip3 install -U twine wheel setuptools
rm -rf dist/
rm -rf build/
rm -rf proactive_jupyter_kernel.egg-info/
#rm MANIFEST
python setup.py sdist --formats=zip
python setup.py bdist_wheel
twine check dist/*