-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathsetup.py
67 lines (61 loc) · 2.87 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
import glob
import os
import sys
from setuptools import setup, Extension, find_packages
src_dir = "src"
include_dirs = glob.glob(os.path.join("src", "libqhull"))
sources = glob.glob(os.path.join("src", "libqhull", "*.c"))
if sys.platform.strip() == "darwin":
include_dirs += glob.glob(os.path.join("src", "fmemopen"))
sources += glob.glob(os.path.join("src", "fmemopen", "*.c"))
extension = Extension('pyhull._pyhull',
include_dirs=include_dirs,
sources=[os.path.join(src_dir, '_pyhull.c')] + sources)
long_description = """
Pyhull is a Python wrapper to Qhull (http://www.qhull.org/) for the
computation of the convex hull, Delaunay triangulation and Voronoi diagram.
It is written as a Python C extension, with both high-level and low-level
interfaces to qhull.
Pyhull has been tested to scale to 10,000 7D points for convex hull
calculations (results in ~ 10 seconds), and 10,000 6D points for Delaunay
triangulations and Voronoi tesselations (~ 100 seconds). Higher number of
points and higher dimensions should be accessible depending on your machine,
but may take a significant amount of time.
For more details or to report bugs, please visit the pyhull GitHub page at
https://github.com/materialsvirtuallab/pyhull or the documentation page at
http://packages.python.org/pyhull/.
"""
setup(name="pyhull",
version="2015.2.1",
author="Shyue Ping Ong, William Davidson Richards",
author_email="[email protected], [email protected]",
maintainer="Shyue Ping Ong",
url="https://github.com/materialsvirtuallab/pyhull",
license="MIT",
description="A Python wrapper to Qhull (http://www.qhull.org/) for "
"the computation of the convex hull, "
"Delaunay triangulation and Voronoi diagram",
keywords=["qhull", "convex", "hull", "computational",
"geometry", "delaunay", "triangulation", "voronoi",
"diagram"],
install_requires=["numpy"],
classifiers=[
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Mathematics"
],
long_description=long_description,
packages=find_packages(),
ext_modules=[extension])