forked from canada-ca/tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
35 lines (31 loc) · 984 Bytes
/
Copy pathsetup.py
File metadata and controls
35 lines (31 loc) · 984 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
import sys
import os
if __name__ == '__main__':
_cmd = "pip3 install"
if not 'pyyaml' in sys.modules:
_cmd = _cmd + " pyyaml"
if not 'pymongo' in sys.modules:
_cmd = _cmd + " pymongo"
if not 'ujson' in sys.modules:
_cmd = _cmd + " ujson"
if not 'dkimpy' in sys.modules:
_cmd = _cmd + " dkimpy"
if not 'celery' in sys.modules:
_cmd = _cmd + " celery"
if not 'kombu' in sys.modules:
_cmd = _cmd + " kombu"
if not 'pshtt' in sys.modules:
_cmd = _cmd + " pshtt"
if not 'sslyze' in sys.modules:
_cmd = _cmd + " sslyze"
if not 'sqlalchemy' in sys.modules:
_cmd = _cmd + " sqlalchemy"
if not 'postgres' in sys.modules:
_cmd = _cmd + " postgres"
if not 'redis' in sys.modules:
_cmd = _cmd + " redis"
try:
os.system(_cmd)
except Exception as e:
print(f'Error occurred while installing requirements: {str(e)}')
print('Done!')