-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
executable file
·38 lines (33 loc) · 1.02 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
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import os
from glob import glob
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
from Cython.Distutils.extension import Extension
from Cython.Distutils import build_ext
ext = 'pyx'
sources = glob('spykesim/*.%s' % (ext,))
extensions = [
Extension(source.split('.')[0].replace(os.path.sep, '.'),
sources=[source],
)
for source in sources]
cmdclass = {'build_ext': build_ext}
import numpy
setup(
name='spykesim',
version='1.2.5',
description='Python module that offers functions for measuring the similarity between two segmented multi-neuronal spiking activities.',
long_description=readme,
author='Keita Watanabe',
author_email='[email protected]',
install_requires=['scipy', 'joblib', 'tqdm', 'h5py'],
url='https://github.com/KeitaW/spikesim',
license=license,
ext_modules=extensions,
cmdclass=cmdclass,
include_dirs = [numpy.get_include()],
)