forked from joe-jordan/pyvoro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
37 lines (34 loc) · 1.13 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
#
# setup.py : pyvoro python interface to voro++
#
# this extension to voro++ is released under the original modified BSD license
# and constitutes an Extension to the original project.
#
# Copyright (c) Joe Jordan 2012
# contact: <joe.jordan@imperial.ac.uk> or <tehwalrus@h2j9k.org>
#
from distutils.core import setup, Extension
# fall back to provided cpp file if Cython is not found
extensions = [
Extension("voroplusplus",
sources=["pyvoro/voroplusplus.cpp",
"pyvoro/vpp.cpp",
"src/voro++.cc"],
include_dirs=["src"],
language="c++",
)
]
setup(
name="pyvoro",
version="1.3.2",
description="2D and 3D Voronoi tessellations: a python entry point for the voro++ library.",
author="Joe Jordan",
author_email="joe.jordan@imperial.ac.uk",
url="https://github.com/joe-jordan/pyvoro",
download_url="https://github.com/joe-jordan/pyvoro/tarball/v1.3.2",
packages=["pyvoro",],
package_dir={"pyvoro": "pyvoro"},
ext_modules=extensions,
keywords=["geometry", "mathematics", "Voronoi"],
classifiers=[],
)