-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
76 lines (63 loc) · 2.17 KB
/
Copy pathsetup.py
File metadata and controls
76 lines (63 loc) · 2.17 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/usr/bin/env python
import os
import sys
from Cython.Build import cythonize
import numpy as np
## TODO: debug setuptools & cython
try:
from setuptools import setup, find_packages, Extension, Command
except ImportError:
from distutils.core import setup, Extension, Command
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
# Install requires
with open('requirements.txt') as fid:
INSTALL_REQUIRES = [l.strip() for l in fid.readlines() if l]
readme = open('README.md').read()
# Doclink
doclink = """
Documentation
-------------
The full documentation is at http://sciquence.rtfd.org."""
# Version
VERSION = '0.1.1'
# Cython
extensions = [
Extension("sciquence.sequences.cy_searching", ["sciquence/sequences/cy_searching.pyx"],
include_dirs=[np.get_include()]),
Extension("sciquence.sequences.cy_searching2", ["sciquence/sequences/cy_searching2.pyx"],
include_dirs=[np.get_include()]),
Extension("sciquence.similarities.cy_segmental_dtw", ["sciquence/similarities/cy_segmental_dtw.pyx"],
include_dirs=[np.get_include()]),
Extension("sciquence.similarities.cy_dtw", ["sciquence/similarities/cy_dtw.pyx"],
include_dirs=[np.get_include()]),
]
extensions = cythonize(extensions)
# Classifiers
classifiers = [
'Programming Language :: Python',
'License :: OSI Approved :: MIT License',
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Natural Language :: English',
'Topic :: Scientific/Engineering',
]
setup(
name='sciquence',
version=VERSION,
description='Time series & sequence processing in Python',
long_description=readme + '\n\n' + doclink + '\n\n', #+ history,
author='Krzysztof Joachimiak',
url='https://github.com/krzjoa/sciquence',
packages=find_packages(where='.', exclude=('tests')),
package_dir={'sciquence': 'sciquence'},
include_package_data=True,
install_requires=INSTALL_REQUIRES,
license='MIT',
zip_safe=False,
ext_modules=extensions,
keywords='sciquence',
classifiers=classifiers,
)