forked from NeuralEnsemble/elephant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
71 lines (64 loc) · 2.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
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
# -*- coding: utf-8 -*-
from setuptools import setup
import os
import sys
try:
from urllib.request import urlretrieve
except ImportError:
from urllib import urlretrieve
long_description = open("README.rst").read()
with open('requirements.txt', 'r') as fp:
install_requires = fp.read()
extras_require = {}
for extra in ['extras', 'docs', 'tests']:
with open('requirements-{0}.txt'.format(extra), 'r') as fp:
extras_require[extra] = fp.read()
# spade specific
is_64bit = sys.maxsize > 2 ** 32
is_python3 = float(sys.version[0:3]) > 2.7
if is_python3:
if is_64bit:
urlretrieve('http://www.borgelt.net/bin64/py3/fim.so',
'elephant/spade_src/fim.so')
else:
urlretrieve('http://www.borgelt.net/bin32/py3/fim.so',
'elephant/spade_src/fim.so')
else:
if is_64bit:
urlretrieve('http://www.borgelt.net/bin64/py2/fim.so',
'elephant/spade_src/fim.so')
else:
urlretrieve('http://www.borgelt.net/bin32/py2/fim.so',
'elephant/spade_src/fim.so')
setup(
name="elephant",
version='0.5.0',
packages=['elephant', 'elephant.test'],
package_data={'elephant': [
os.path.join('current_source_density_src', 'test_data.mat'),
os.path.join('current_source_density_src', 'LICENSE'),
os.path.join('current_source_density_src', 'README.md'),
os.path.join('current_source_density_src', '*.py'),
os.path.join('spade_src', '*.py'),
os.path.join('spade_src', 'LICENSE'),
os.path.join('spade_src', '*.so')
]},
install_requires=install_requires,
extras_require=extras_require,
author="Elephant authors and contributors",
author_email="[email protected]",
description="Elephant is a package for analysis of electrophysiology"
" data in Python",
long_description=long_description,
license="BSD",
url='http://neuralensemble.org/elephant',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering']
)