-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
48 lines (39 loc) · 1.26 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-spectrum',
'version': '0.2.2',
'description': 'data type for holding power or phase spectra for a signal',
'author': 'Ben Dichter',
'author_email': 'ben.dichter@gmail.com',
'url': '',
'license': '',
'install_requires': [
'pynwb',
'matplotlib'
],
'packages': find_packages('src/pynwb'),
'package_dir': {'': 'src/pynwb'},
'package_data': {'ndx_spectrum': [
'spec/ndx-spectrum.namespace.yaml',
'spec/ndx-spectrum.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-spectrum.namespace.yaml')
ext_path = os.path.join(project_dir, 'spec', 'ndx-spectrum.extensions.yaml')
dst_dir = os.path.join(project_dir, 'src', 'pynwb', 'ndx_spectrum', '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)