forked from jaberg/nengo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·51 lines (47 loc) · 1.46 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
#!/usr/bin/env python
import sys
try:
from setuptools import setup
from setuptools.command.test import test as TestCommand
except ImportError:
try:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
from setuptools.command.test import test as TestCommand
except Exception as e:
print("Forget setuptools, trying distutils...")
from distutils.core import setup
try:
class Tox(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import tox
errno = tox.cmdline(self.test_args)
sys.exit(errno)
testing = {'tests_require': ['tox'], 'cmdclass': {'test': Tox}}
except NameError:
testing = {}
description = ("Tools for making neural simulations using the methods "
+ "of the Neural Engineering Framework")
setup(
name="nengo",
version="2.0.0",
author="CNRGlab at UWaterloo",
author_email="[email protected]",
packages=['nengo', 'nengo.tests', 'nengo.networks'],
scripts=[],
url="https://github.com/ctn-waterloo/nengo",
license="GPLv3",
description=description,
long_description=open('README.rst').read(),
requires=[
"numpy (>=1.5.0)",
"networkx",
],
**testing
)