-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
76 lines (68 loc) · 2.02 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import setuptools
import os
import Cython
from Cython import Build
import numpy
with open("README.rst", "r", encoding="utf-8") as f:
long_description = f.read()
with open(os.path.join("homogeneous_transformation", "version.py")) as f:
txt = f.read()
last_line = txt.splitlines()[-1]
version_string = last_line.split()[-1]
version = version_string.strip("\"'")
merlict_c89_sources = [
"chk_debug.c",
"mli_quadratic_equation.c",
"mli_version.c",
"mliHomTra.c",
"mliMat.c",
"mliQuaternion.c",
"mliRay.c",
"mliVec.c",
]
extensions = [
setuptools.Extension(
name="homogeneous_transformation.merlict_c89.wrapper",
sources=[
os.path.join(
"homogeneous_transformation", "merlict_c89", "wrapper.pyx"
),
]
+ [
os.path.join("homogeneous_transformation", "merlict_c89", pp)
for pp in merlict_c89_sources
],
include_dirs=[numpy.get_include()],
)
]
setuptools.setup(
name="homogeneous_transformation",
version=version,
description=(
"Define and apply rotations and translations "
"in 3D space to numpy Arrays."
),
long_description=long_description,
long_description_content_type="text/x-rst",
url="https://github.com/cherenkov-plenoscope/homogeneous_transformation",
author="Sebastian Achim Mueller",
author_email="sebastian-achim.mueller@mpi-hd.mpg.de",
packages=[
"homogeneous_transformation",
"homogeneous_transformation.merlict_c89",
],
package_data={
"homogeneous_transformation": [
os.path.join("merlict_c89", "*"),
],
},
install_requires=[],
ext_modules=Cython.Build.cythonize(extensions),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Natural Language :: English",
"Intended Audience :: Science/Research",
],
)