-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.py
45 lines (40 loc) · 1.21 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
from setuptools import Extension, setup, find_packages
import numpy
from ExKMC import __version__
import sys
with open("README.md", "r") as fh:
long_description = fh.read()
if '--cython' in sys.argv:
from Cython.Build import cythonize
extensions = [
Extension(
"cut_finder",
["ExKMC/splitters/cut_finder.pyx"],
extra_compile_args=['-fopenmp'],
extra_link_args=['-fopenmp']
)
]
extensions = cythonize(extensions)
sys.argv.remove("--cython")
else:
extensions = [Extension("cut_finder", ["ExKMC/splitters/cut_finder.c"])]
setup(
name="ExKMC",
version=__version__,
author="Nave Frost",
author_email="navefrost@mail.tau.edu",
liceanse="MIT",
description="Expanding Explainable K-Means Clustering",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/navefr/ExKMC",
packages=find_packages(),
ext_modules=extensions,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
include_dirs=[numpy.get_include()],
python_requires='>=3.0',
)