forked from cnmodel/cnmodel
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
23 lines (19 loc) · 766 Bytes
/
Copy pathsetup.py
File metadata and controls
23 lines (19 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from setuptools import setup, find_packages
import os
path = os.path.join(os.path.dirname(__file__), 'cnmodel')
version = None
for line in open(os.path.join(path, '__init__.py'), 'r').readlines():
if line.startswith('__version__'):
version = line.partition('=')[2].strip('"\' \n')
break
if version is None:
raise Exception("Could not read __version__ from cnmodel/__init__.py")
setup(name='cnmodel',
version=version,
description='A biophysically realistic model of the cochlear nucleus',
url='http://github.com/pbmanis/cnmodel',
author='Paul B. Manis and Luke Campagnola',
author_email='pmanis@med.unc.edu',
license='MIT',
packages=find_packages(include=['cnmodel*']),
zip_safe=False)