-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·46 lines (38 loc) · 1.15 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
#!/usr/bin/env python3
import glob
import os
import pathlib
try:
from setuptools import setup, Extension
except ImportError:
from distutils.core import setup, Extension
parent_path = pathlib.Path(__file__).parent
try:
import numpy
except:
raise ImportError('Numpy is required for building this package.', name='numpy')
numpy_path = os.path.dirname(numpy.__file__)
numpy_include = numpy_path + '/core/include'
CPP_SOURCES = [
'swig/clustering_wrapper.cpp',
'swig/SDOstreamclust_wrap.cxx'
]
SDOstreamclust_cpp = Extension(
'SDOstreamclust.swig._SDOstreamclust',
CPP_SOURCES,
include_dirs=['cpp', numpy_include, 'contrib/boost/include'],
extra_compile_args=['-g0']
)
setup(
name='SDOstreamclust',
version='0.1',
license='LGPL-3.0',
description='SDOstreamclust is an algorithm for clustering data streams',
author='Simon Konzett',
author_email='[email protected]',
packages=['SDOstreamclust', 'SDOstreamclust.swig'],
package_dir={'SDOstreamclust': 'python', 'SDOstreamclust.swig': 'swig'},
ext_modules = [ SDOstreamclust_cpp ],
install_requires=['numpy'],
python_requires='>=3.5'
)