-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
58 lines (53 loc) · 1.74 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
47
48
49
50
51
52
53
54
55
56
57
58
import pathlib
from setuptools import setup, find_packages
from setuptools.extension import Extension
from Cython.Build import cythonize
import numpy as np
# The directory containing this file
current_dir = pathlib.Path(__file__).parent
# The text of the README file
README = (current_dir / "README.md").read_text()
extensions = [
Extension(
name="quantimpy.minkowski",
sources=["quantimpy/minkowski.pyx", "quantimpy/quantimpyc.c", "quantimpy/minkowskic.c"],
),
Extension(
name="quantimpy.segmentation",
sources=["quantimpy/segmentation.pyx"],
),
Extension(
name="quantimpy.brisque",
sources=["quantimpy/brisque.pyx"],
),
]
setup(
name="quantimpy",
version="0.4.6",
description="This package performs morphological operations and can compute the Minkowski functionals and functions",
long_description=README,
long_description_content_type="text/markdown",
url="https://github.com/boeleman/quantimpy",
author="Arnout Boelens",
author_email="boelens@stanford.edu",
install_requires=[
"numpy",
"scipy",
"matplotlib",
"edt",
],
ext_modules=cythonize(extensions, language_level=3),
packages=find_packages(exclude=("tests",)),
include_dirs=[np.get_include()],
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3",
"Programming Language :: C",
"Programming Language :: Cython",
],
)