-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
69 lines (63 loc) · 1.6 KB
/
setup.py
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import subprocess
import sys
packages = ['Babel',
'bscpylgtv',
'Cython',
'Flask',
'Flask-SocketIO',
'MarkupSafe',
'Pillow',
'Werkzeug',
'beautifulsoup4',
'bidict',
'certifi',
'cffi',
'charset-normalizer',
'click',
'colorama',
'construct',
'ezodf',
'future',
'gevent',
'gevent-websocket',
'greenlet',
'h11',
'idna',
'importlib-metadata',
'iso8601',
'itsdangerous',
'jinja2',
'logzero',
'lxml',
'pip',
'pycparser',
'pymidi',
'python-dateutil',
'python-engineio',
'python-socketio',
'pytimeparse',
'pytz',
'requests',
'rtmidi2',
'setuptools',
'simple-websocket',
'six',
'soupsieve',
'typing-extensions',
'urllib3',
'wakeonlan',
'wget',
'wheel',
'wsproto',
'zipp',
'zope.event',
'zope.interface',
'zulu']
def update_pip():
subprocess.check_call([sys.executable, "-m", "pip", "install", "--upgrade", "pip"])
def install(package):
subprocess.check_call([sys.executable, "-m", "pip", "install", package])
if __name__ == '__main__':
update_pip()
for package in packages:
install(package)