forked from SmokinCaterpillar/pypet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
78 lines (70 loc) · 2.51 KB
/
setup.py
File metadata and controls
78 lines (70 loc) · 2.51 KB
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
__author__ = 'Robert Meyer'
import re
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
install_requires=[
'tables >= 2.3.1',
'pandas >= 0.14.1',
'numpy >= 1.6.1',
'scipy >= 0.9.0']
# check if importlib exists, if not (aka python 2.6) install it
try:
import importlib
except ImportError:
install_requires.append('importlib')
if (sys.version_info < (2, 7, 0)):
# For Python 2.6 we additionally need these packages:
install_requires.append(['unittest2'])
install_requires.append('ordereddict >= 1.1')
install_requires.append('importlib >= 1.0.1')
install_requires.append('logutils >= 0.3.3')
# For versioning, Version found in pypet._version.py
verstrline = open('pypet/_version.py', "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
raise RuntimeError('Unable to find version in pypet/_version.py')
setup(
name='pypet',
version=verstr,
packages=['pypet',
'pypet.brian',
'pypet.brian2',
'pypet.utils',
'pypet.tests',
'pypet.tests.unittests',
'pypet.tests.integration',
'pypet.tests.profiling',
'pypet.tests.testutils',
'pypet.tests.unittests.briantests',
'pypet.tests.integration.briantests',
'pypet.tests.unittests.brian2tests',
'pypet.tests.integration.brian2tests',
],
package_data={'pypet.tests': ['testdata/*.hdf5'], 'pypet': ['logging/*.ini']},
license='BSD',
author='Robert Meyer',
author_email='robert.meyer@ni.tu-berlin.de',
description='A toolkit for numerical simulations to allow easy parameter exploration and storage of results.',
long_description=open('README.md').read(),
url='https://github.com/SmokinCaterpillar/pypet',
install_requires=install_requires,
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Intended Audience :: Science/Research',
'Natural Language :: English',
'Operating System :: OS Independent',
'Topic :: Scientific/Engineering',
'License :: OSI Approved :: BSD License',
'Topic :: Utilities']
)