-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
45 lines (39 loc) · 1.05 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
"""
Setup script for topopy
"""
import platform
from setuptools import Extension, setup
extra_compile_args = [
"-O3",
]
extra_link_args = []
if platform.system() == "Darwin":
extra_compile_args.append("-stdlib=libc++")
extra_link_args.append("-stdlib=libc++")
FILES = [
"UnionFind.cpp",
"MergeTree.cpp",
"MorseComplex.cpp",
"utils.cpp",
"topology_wrap.cpp",
]
# Consult here: https://packaging.python.org/tutorials/distributing-packages/
setup(
name="topopy",
packages=["topopy"],
description="A library for computing topological data structures",
long_description="Given a set of arbitrarily arranged points in any "
+ "dimension, this library is able to construct "
+ "approximate topological structures using a "
+ "neighborhood graph.",
test_suite="topopy.tests",
python_requires=">=2.7, <4",
ext_modules=[
Extension(
"topopy._topology",
FILES,
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args,
)
],
)