-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathsetup.py
More file actions
80 lines (62 loc) · 1.97 KB
/
setup.py
File metadata and controls
80 lines (62 loc) · 1.97 KB
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
77
78
79
import io
import os
from setuptools import setup, find_packages, Command
#-- old setup.py workflow for backwards compatibility
#-- python setup.py build_external
#-- python setup.py install
NAME = "jigsawpy"
DESCRIPTION = \
"Python interface for the JIGSAW meshing library."
AUTHOR = "Darren Engwirda"
AUTHOR_EMAIL = "d.engwirda@gmail.com"
URL = "https://github.com/dengwirda/"
VERSION = "1.1.0"
REQUIRES_PYTHON = ">=3.6.0"
KEYWORDS = "Mesh-generation Delaunay Voronoi"
REQUIRED = [
"numpy", "scipy"
]
CLASSIFY = [
"Development Status :: 5 - Production/Stable",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: C++",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering :: Visualization"
]
HERE = os.path.abspath(os.path.dirname(__file__))
try:
with io.open(os.path.join(
HERE, "README.md"), encoding="utf-8") as f:
LONG_DESCRIPTION = "\n" + f.read()
except FileNotFoundError:
LONG_DESCRIPTION = DESCRIPTION
class build_external(Command):
description = "build external JIGSAW dependencies"
user_options = []
def initialize_options(self): pass
def finalize_options(self): pass
def run(self):
if (self.dry_run): return
import build; build.build_external()
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
author=AUTHOR,
author_email=AUTHOR_EMAIL,
python_requires=REQUIRES_PYTHON,
keywords=KEYWORDS,
url=URL,
packages=find_packages(exclude=["tests",]),
cmdclass={"build_external": build_external},
package_data={"jigsawpy": ["_bin/*", "_lib/*"]},
install_requires=REQUIRED,
classifiers=CLASSIFY
)