-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathsetup.py
68 lines (62 loc) · 1.76 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
"""Setup script for peridynamics."""
from setuptools import setup, find_packages, Extension
from Cython.Build import cythonize
import pathlib
# The directory containing this file
HERE = pathlib.Path(__file__).parent
# The text of the README file
README = (HERE / "README.md").read_text()
extra_compile_args = ['-O3']
extra_link_args = []
ext_modules = [
Extension(
"peripy.create_crack",
["peripy/create_crack.pyx"],
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args
),
Extension(
"peripy.peridynamics",
["peripy/peridynamics.pyx"],
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args
),
Extension(
"peripy.spatial",
["peripy/spatial.pyx"],
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args
),
Extension(
"peripy.correction",
["peripy/correction.pyx"],
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args
)
]
setup(
name="peripy",
version="1.0.0",
description="A fast OpenCL Peridynamics package for python",
long_description=README,
long_description_content_type="text/markdown",
url="https://github.com/alan-turing-institute/Probabilistic-Peridynamics",
author="Jim Madge, Ben Boys, Tim Dodwell, Greg Mingas",
license="MIT",
packages=find_packages(exclude=['*.test']),
include_package_data=True,
entry_points={
'console_scripts': ['peripy=peripy.cli:main']
},
ext_modules=cythonize(ext_modules),
install_requires=[
'meshio',
'numpy',
'pyopencl',
'scipy',
'tqdm',
'h5py',
'sklearn',
'tqdm',
]
)