-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
61 lines (42 loc) · 1.23 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
#!/usr/bin/env python
# -------------------------------------- #
import os, sys
# -------------------------------------- #
###################
# CHECK PY DEPS #
###################
# check python package dependencies
def checkPyDeps() :
print "*******************************"
print " CHECKING PYTHON DEPENDECIES "
print "*******************************"
# pymongo
import pymongo
if pymongo.__name__ :
print "pymongo...verified"
# pickledb
import pickledb
if pickledb.__name__ :
print "pickledb...verified"
print "All python dependencies installed! Yay! =D"
print "*******************************"
print "*******************************"
return None
##############################
# UPDATE EXISTING PACKAGES #
##############################
def updateExistingPackages() :
print "*******************************"
print " UPDATING EXISTING PACKAGES"
print "*******************************"
# keep all submodules up-to-date
os.system( "git pull --recurse-submodules" )
os.system( "git submodule update --remote --recursive" )
##############################
# MAIN THREAD OF EXECUTION #
##############################
checkPyDeps()
updateExistingPackages()
#########
# EOF #
#########