-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
67 lines (59 loc) · 2.67 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
#!/usr/bin/env python
"""
This module tries to install all the required software.
"""
import os
from setuptools import setup, find_packages
import dot.common.constants as constants
def get_tor():
if not os.path.dirname("/opt/local/etc/tor"):
install = raw_input(("[" + constants.T + "*" + constants.W + "] tor not found in " +
"/opt/local/etc/tor, install now? [y/n] "))
if install == "y":
if os.path.dirname("/usr/local/Homebrew"):
try:
os.system("brew install tor")
except:
print '[' + G + '+' + W + '] Please download Homebrew: \n https://brew.sh/'
else:
os.system("apt-get -y install tor")
else:
sys.exit(("[" + constants.R + "-" + constants.W + "] tor " +
"/opt/local/etc/tor"))
def get_pubnub():
try:
os.system("pip install 'pubnub>=3,<4' --ignore-installed six")
except:
print 'please download pip'
NAME = "Dot"
AUTHOR = "gert-janwille"
URL = "https://github.com/gert-janwille/dot"
DESCRIPTION = "Automated lightweight project who will do everything"
LICENSE = "MIT"
KEYWORDS = ["dot", "evil"]
PACKAGES = find_packages(exclude=["docs", "tests"])
INCLUDE_PACKAGE_DATA = True
VERSION = "0.0.1"
CLASSIFIERS = ["Development Status :: 1 - Planning",
"Natural Language :: English", "Operating System :: Unix",
"Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 2 :: Only", "Topic :: Security",
"Topic :: System :: Networking", "Intended Audience :: End Users/Desktop",
"Intended Audience :: System Administrators",
"Intended Audience :: Information Technology"]
ENTRY_POINTS = {"console_scripts": ["dot = dot.pydot:run"]}
INSTALL_REQUIRES = ["pexpect", "future", "youtube_dl"]
# run setup
setup(name=NAME, author=AUTHOR, description=DESCRIPTION,
license=LICENSE, keywords=KEYWORDS, packages=PACKAGES,
include_package_data=INCLUDE_PACKAGE_DATA, version=VERSION, entry_points=ENTRY_POINTS,
install_requires=INSTALL_REQUIRES, classifiers=CLASSIFIERS, url=URL)
# Get tor
get_tor()
get_pubnub()
print(" |_ _ `. .' `. | _ _ | ")
print(" | | `. \/ .-. \|_/ | | \_| ")
print(" | | | || | | | | | ")
print(r" _| |_.' /\ `-' / _| |_ ")
print(r" |______.' `.___.' |_____| ")
print(" ")