-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
79 lines (61 loc) · 2 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
69
70
71
72
73
74
75
76
77
78
79
import pathlib
from setuptools import setup, find_packages, Extension
from Cython.Build import cythonize
import numpy
import sys
here = pathlib.Path(__file__).parent.resolve()
long_description = (here / "README.md").read_text(encoding="utf-8")
if sys.platform.startswith("win"):
openmp_arg = '/openmp'
else:
openmp_arg = '-fopenmp'
ext_modules = [
Extension(
"pyvale.cython.rastercyth",
["src/pyvale/cython/rastercyth.py",],
include_dirs=[numpy.get_include()],
extra_compile_args=["-ffast-math",openmp_arg],
extra_link_args=[openmp_arg],
),
]
setup(
name="pyvale",
version="0.1.0",
description="An all-in-one package for sensor simulation, sensor uncertainty quantification, sensor placement optimisation and simulation calibration or validation.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Computer-Aided-Validation-Laboratory/pyvale",
author="ScepticalRabbit",
author_email="[email protected]",
package_dir={"": "src"},
packages=find_packages(where="src"),
# Locked to 3.11 for blender python interface
python_requires="==3.11.*",
install_requires=[
"mooseherder>=0.1.0",
"numpy<2.0.0",
"scipy>=1.14.0",
"netCDF4>=1.6.5",
"pyvista>=0.43.3",
"matplotlib>=3.8",
"shapely>=2.0.4",
"sympy>=1.13.0",
"PyQT6>=6.7.1",
"imageio>=2.36.1",
"imageio-ffmpeg>=0.5.1",
"numba>=0.59.1",
"pymoo>=0.6.1.3",
"Cython>=3.0.0",
"bpy>=4.2.0",
],
package_data={
"pyvale.data" : ["*.e","*.tiff"],
"pyvale.simcases" : ["*.i","*.geo"],
},
project_urls={
"Repository" : "https://github.com/Digital-Validation-Laboratory/pyvale",
"Issue Tracker" : "https://github.com/Digital-Validation-Laboratory/pyvale/issues",
},
ext_modules=cythonize(ext_modules,
annotate=True),
)