forked from jaredweiss/numenta-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
46 lines (36 loc) · 1.34 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
from setuptools import setup, find_packages
installRequires = []
dependencyLinks = []
with open("requirements.txt", "r") as reqfile:
for line in reqfile:
line = line.strip()
(link, _, package) = line.rpartition("#egg=")
if link:
# e.g., "-e https://github.com/vitaly-krugl/haigha/tarball/master#egg=haigha-0.7.4rc100"
if line.startswith("-e"):
line = line[2:].strip()
dependencyLinks.append(line)
(packageName, _, packageVersion) = package.partition("-")
package = packageName + "==" + packageVersion
installRequires.append(package)
setup(
name = "nta.utils",
description = "Numenta common utilities",
packages = find_packages(),
include_package_data=True,
install_requires = installRequires,
dependency_links = dependencyLinks,
entry_points = {
"console_scripts": [
"nta-import-queues = nta.utils.tools.import_queues:main",
("nta-get-supervisord-state = "
"nta.utils.tools.supervisord_state:getStateMain"),
("nta-wait-for-supervisord-running = "
"nta.utils.tools.supervisord_state:waitForRunningStateMain"),
("nta-wait-for-supervisord-stopped = "
"nta.utils.tools.supervisord_state:waitForStoppedStateMain"),
("nta-wait-for-supervisord-processes-stopped = "
"nta.utils.tools.supervisord_state:waitForAllToStop"),
]
}
)