-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathsetup.py
78 lines (68 loc) · 2.88 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
70
71
72
73
74
75
76
77
78
import sys
import os
from setuptools import setup, find_packages
"""
This file should called to install the NuPIC Studio.
"""
REPO_DIR = os.getcwd()
def getPlatformInfo():
"""
Identify platform
"""
if "linux" in sys.platform:
platform = "linux"
elif "darwin" in sys.platform:
platform = "darwin"
elif "win32" in sys.platform:
platform = "windows"
else:
raise Exception("Platform '%s' is unsupported!" % sys.platform)
if sys.maxsize > 2**32:
bitness = "64"
else:
bitness = "32"
return platform, bitness
platform, bitness = getPlatformInfo()
# Get properties of the project like version, notes, etc
properties = {}
execfile(os.path.join(REPO_DIR, "nupic_studio", "__init__.py"), {}, properties)
# Call the setup process
os.chdir(REPO_DIR)
setup(
name = 'nupic_studio',
version = properties["__version__"],
packages = find_packages(),
package_data = {
'': ['README.md', 'LICENSE'],
'nupic_studio': ['nupic_studio.config'],
'nupic_studio.images': ['*'],
'nupic_studio.projects': ['*']},
entry_points = {
'gui_scripts': ['nupic_studio = nupic_studio.program:main']},
description = 'NuPIC Studio is a virtual studio that allows developers to create, debug, and visualize HTM networks from NuPIC library',
author='David Ragazzi',
author_email='david_ragazzi@hotmail.com',
url='https://github.com/nupic-community/nupic.studio',
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Operating System :: OS Independent',
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Artificial Intelligence'
],
install_requires = [
"nupic==0.5.4"
"panda3d==1.10.6"
"PyQt5==0.1.10",
"Pillow==6.2.2",
"pathlib==1.0.1",
"pymemcache==3.2.0"],
long_description = """NuPIC Studio is a virtual studio that allows developers to create, debug, and visualize HTM networks from NuPIC library. Some of its advantages:
* Users can open, save, or change their "HTM projects" or of other developers. A typical project contains data to be trained, neural network configuration, statistics, etc, which can be shared to be analysed or integrated with other projects.
* Users can create their own encoders and sensors to feed the HTM network.
* Any changes in the nupic source can be immediatedly viewed. This helps users that wish test improvements like hierarchy, attention, and motor integration.
For more information, see numenta.org or the NuPIC wiki (https://github.com/nupic-community/nupic.studio/wiki)."""
)