forked from nengo/nengo
/
setup.py
executable file
·71 lines (65 loc) · 2.18 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
#!/usr/bin/env python
import imp
import io
import sys
import os
try:
from setuptools import setup
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import find_packages, setup # noqa: F811
def read(*filenames, **kwargs):
encoding = kwargs.get('encoding', 'utf-8')
sep = kwargs.get('sep', '\n')
buf = []
for filename in filenames:
with io.open(filename, encoding=encoding) as f:
buf.append(f.read())
return sep.join(buf)
root = os.path.dirname(os.path.realpath(__file__))
version_module = imp.load_source(
'version', os.path.join(root, 'nengo', 'version.py'))
testing = 'test' in sys.argv or 'pytest' in sys.argv
setup(
name="nengo",
version=version_module.version,
author="Applied Brain Research",
author_email="info@appliedbrainresearch.com",
packages=find_packages(),
scripts=[],
data_files=[('nengo', ['nengo-data/nengorc'])],
url="https://github.com/nengo/nengo",
license="Free for non-commercial use",
description="Tools for making neural simulations using the "
"Neural Engineering Framework",
long_description=read('README.rst', 'CHANGES.rst'),
zip_safe=False,
# Without this, `setup.py install` fails to install NumPy.
# See https://github.com/nengo/nengo/issues/508 for details.
setup_requires=["pytest-runner"] if testing else [] + [
"numpy>=1.6",
],
install_requires=[
"numpy>=1.6",
],
extras_require={
'all_solvers': ["scipy>=0.13", "scikit-learn"],
},
tests_require=['pytest>=2.3'],
entry_points={
'nengo.backends': [
'reference = nengo:Simulator'
],
},
classifiers=[ # https://pypi.python.org/pypi?%3Aaction=list_classifiers
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'License :: Free for non-commercial use',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
],
)