-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
48 lines (39 loc) · 1.39 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
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
from shutil import copy2
setup_args = {
'name': 'ndx-simulation-output',
'version': '0.2.6',
'description': 'Holds structures for recording data from multiple compartments of multiple neurons in a single '
'TimeSeries',
'author': 'Ben Dichter',
'author_email': '[email protected]',
'url': '',
'license': '',
'install_requires': [
'pynwb>=1.1.2', 'tqdm'
],
'packages': find_packages('src/pynwb'),
'package_dir': {'': 'src/pynwb'},
'package_data': {'ndx_simulation_output': [
'spec/ndx-simulation-output.namespace.yaml',
'spec/ndx-simulation-output.extensions.yaml',
]},
'classifiers': [
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
],
'zip_safe': False
}
def _copy_spec_files(project_dir):
ns_path = os.path.join(project_dir, 'spec', 'ndx-simulation-output.namespace.yaml')
ext_path = os.path.join(project_dir, 'spec', 'ndx-simulation-output.extensions.yaml')
dst_dir = os.path.join(project_dir, 'src', 'pynwb', 'ndx_simulation_output', 'spec')
if not os.path.exists(dst_dir):
os.mkdir(dst_dir)
copy2(ns_path, dst_dir)
copy2(ext_path, dst_dir)
if __name__ == '__main__':
_copy_spec_files(os.path.dirname(__file__))
setup(**setup_args)