-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
31 lines (26 loc) · 1.08 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
# setup.py
# run with: python setup.py build_ext --inplace
# clean up with: python setup.py clean --all
from Cython.Build import cythonize
import numpy as np
from setuptools.extension import Extension
from setuptools import find_packages, setup
with open('requirements.txt', 'r') as f:
required = f.read().splitlines()
with open('test_requirements.txt', 'r') as f:
test_required = f.read().splitlines()
ext_modules = [Extension("oasis.oasis_methods",
sources=["oasis/oasis_methods.pyx"],
include_dirs=[np.get_include()],
language="c++")]
setup(name='oasis',
version='0.1.0',
author='Johannes Friedrich',
author_email='[email protected]',
url='https://github.com/j-friedrich/OASIS',
license='GPL-3',
description='Fast algorithm for deconvolution of neural calcium imaging traces',
ext_modules=cythonize(ext_modules,compiler_directives={'cdivision': True}),
packages=find_packages(),
install_requires=required,
tests_require=test_required)