-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
85 lines (75 loc) · 2.46 KB
/
pyproject.toml
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
80
81
82
83
84
85
[project]
name = "itis_dakota"
description = "Dakota wheel built by the IT'IS Foundation, Zurich, Switzerland"
license = { file = "LICENSE.txt" }
authors = [
{name="Werner Van Geit"}
]
readme = {file = "README.md", content-type = "text/markdown"}
dependencies = ["numpy"]
requires-python = ">=3.8"
dynamic = ["version"]
[project.urls]
homepage = "https://github.com/ITISFoundation/itis-dakota"
repository = "https://github.com/ITISFoundation/itis-dakota.git"
issues = "https://github.com/ITISFoundation/itis-dakota/issues"
[build-system]
requires = [
"py-build-cmake",
"cmake",
"auditwheel",
"setuptools",
"setuptools_scm",
"numpy",
"h5py"
]
build-backend = "build_backend.build"
backend-path = "."
[tool.setuptools]
packages = ["itis_dakota"]
package-dir = {"itis_dakota" = "itis_dakota"}
[tool.setuptools_scm]
version_file = "itis_dakota/_version.py"
local_scheme = "no-local-version"
[tool.cibuildwheel]
repair-wheel-command = "auditwheel repair -w {dest_dir} {wheel} && ./scripts/fix_wheel.sh {dest_dir}"
build-verbosity = 1
[tool.cibuildwheel.environment]
BOOST_LIBRARYDIR = "/usr/lib64/boost1.78"
BOOST_INCLUDEDIR = "/usr/include/boost1.78"
[tool.cibuildwheel.linux]
environment-pass = [
"SCCACHE_GHA_ENABLED",
"ACTIONS_CACHE_URL",
"ACTIONS_RUNTIME_TOKEN"
]
before-all = [
"yum install -y epel-release yum-utils",
"yum-config-manager --enable epel",
"yum makecache --refresh",
"yum install -y lapack-devel boost1.78-devel blas-devel hdf5-devel zip unzip ccache wget gsl-devel",
"wget --progress=dot:mega https://github.com/mozilla/sccache/releases/download/v0.8.1/sccache-v0.8.1-x86_64-unknown-linux-musl.tar.gz",
"tar xzvf sccache-v0.8.1-x86_64-unknown-linux-musl.tar.gz",
"cp sccache-v0.8.1-x86_64-unknown-linux-musl/sccache /usr/bin/",
"pip install setuptools_scm",
"python -m setuptools_scm --force-write-version-files",
]
skip = "*-musllinux_*"
manylinux-x86_64-image="quay.io/pypa/manylinux_2_28_x86_64:2024-12-05-7ed1b2d"
[tool.py-build-cmake.cmake]
source_path = "."
build_args = ["-j8"]
build_type = "Release"
install_components = ["dakota_for_python"]
[tool.py-build-cmake.cmake.options]
CMAKE_CXX_COMPILER_LAUNCHER = "sccache"
DAKOTA_HAVE_HDF5 = "ON"
HAVE_QUESO = "ON"
DAKOTA_HAVE_GSL = "ON"
DAKOTA_PYTHON_WRAPPER = "ON"
DAKOTA_PYTHON_DIRECT_INTERFACE = "ON"
BUILD_SHARED_LIBS = "OFF"
CMAKE_POSITION_INDEPENDENT_CODE = "ON"
# CMAKE_VERBOSE_MAKEFILE = "ON"
[tool.pytest.ini_options]
addopts = "--ignore=dakota/"