feat(initial): added portable mfem build system
This commit is contained in:
41
pyproject.toml
Normal file
41
pyproject.toml
Normal file
@@ -0,0 +1,41 @@
|
||||
[build-system]
|
||||
build-backend = "mesonpy"
|
||||
requires = [
|
||||
"meson-python>=0.20",
|
||||
"meson>=1.9.1",
|
||||
"ninja>=1.11",
|
||||
"cmake>=3.24",
|
||||
"patchelf>=0.17; sys_platform == 'linux'",
|
||||
]
|
||||
|
||||
[project]
|
||||
name = "meson-mfem-template"
|
||||
dynamic = ["version"]
|
||||
description = "Portable Meson source bundle and nanobind validation module for MFEM"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.10"
|
||||
license = "MIT"
|
||||
license-files = ["LICENSE"]
|
||||
|
||||
[tool.meson-python]
|
||||
allow-windows-internal-shared-libs = true
|
||||
|
||||
[tool.meson-python.args]
|
||||
setup = [
|
||||
"-Dbuildtype=release",
|
||||
"-Dallow_preinstalled=false",
|
||||
"-Dfeature_profile=portable",
|
||||
"-Dbuild_python=true",
|
||||
"-Dbuild_examples=false",
|
||||
"-Dbuild_tests=false",
|
||||
"-Dinstall_mfem=true",
|
||||
"-Dpython_install_native=true",
|
||||
"-Dmfem_openmp=disabled",
|
||||
"-Dmfem_cuda=disabled",
|
||||
"-Dmfem_hip=disabled",
|
||||
"--force-fallback-for=nanobind,robin-map",
|
||||
]
|
||||
install = [
|
||||
"--tags=python-runtime,python-native",
|
||||
"--skip-subprojects",
|
||||
]
|
||||
Reference in New Issue
Block a user