-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
executable file
·61 lines (52 loc) · 1.77 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
59
60
61
from setuptools import Extension, setup
# potential way to read in version # ?
# https://blogs.nopcode.org/brainstorm/2013-05-20-pragmatic-python-versioning-via-setuptools-and-git-tags/
def readme():
with open("README.MD") as f:
return f.read()
try:
from Cython.Build import cythonize
ext_modules = cythonize(
[
Extension(
name="cython_functions",
sources=["cycpd/cython/cython_functions.pyx"],
include_dirs=["cycpd/cython/"],
)
]
)
except ImportError:
ext_modules = None
try:
import numpy as np
except ImportError:
raise Exception(
"Numpy must be installed to build this pacakge.\n Install with `pip install .` or run `pip install -r requirements.txt` before building."
)
setup(
name="cycpd",
version="0.28",
description="Numpy + Cython Implementation of the Coherent Point Drift Algorithm",
long_description=readme(),
long_description_content_type="text/markdown",
url="https://github.com/gattia/cycpd",
classifiers=[
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
# 'Programming Language :: Python :: 3.4',
# 'Programming Language :: Python :: 3.5',
# 'Programming Language :: Python :: 3.6',
"Topic :: Scientific/Engineering",
],
keywords="image processing, point cloud, registration, mesh, surface",
author="Anthony Gatti",
author_email="[email protected]",
license="MIT",
ext_modules=ext_modules,
# include_dirs=[np.get_include()],
packages=["cycpd"],
# package_data={"cycpd.cython": ["cython_functions.pxd"]},
setup_requires=["Cython>=0.29", "setuptools"],
install_requires=["numpy"],
zip_safe=False,
)