-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathpyproject.toml
More file actions
82 lines (72 loc) · 2.83 KB
/
pyproject.toml
File metadata and controls
82 lines (72 loc) · 2.83 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
80
81
82
[build-system]
requires = ["setuptools>=75.3", "setuptools-scm>=8", "cmake>=3.20", "ninja"]
build-backend = "setuptools.build_meta"
[project]
name = "pyomp"
dynamic = ["version"]
description = "Python OpenMP library based on Numba"
readme = "README.md"
requires-python = ">=3.10, <3.15"
license = "BSD-2-Clause"
license-files = ["LICENSE", "LICENSE-OPENMP.txt"]
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Software Development :: Compilers",
]
dependencies = ["numba>=0.62, <0.64", "lark", "cffi", "setuptools"]
maintainers = [
{ name = "Giorgis Georgakoudis", email = "georgakoudis1@llnl.gov" },
]
[project.urls]
Homepage = "https://github.com/Python-for-HPC/PyOMP"
Issues = "https://github.com/Python-for-HPC/PyOMP/issues"
[tool.setuptools]
include-package-data = false
packages = ["numba.openmp", "numba.openmp.tests"]
package-dir = { "" = "src" }
# setuptools-scm config
[tool.setuptools_scm]
write_to = "src/numba/openmp/_version.py"
local_scheme = "no-local-version"
[tool.cibuildwheel]
archs = ["native"]
# Pass LLVM_VERSION from the host environment to cibuildwheel.
environment-pass = ["LLVM_VERSION"]
# We use miniconda3 to get the clang/llvm toolchain on Linux.
before-build = ["rm -rf build dist src/*.egg-info"]
# Skip building 3.14t wheels as they are not supported by the current numba/llvmlite version.
skip = ["*-musllinux_*", "cp38-*", "cp314t-*"]
test-command = [
# Run host OpenMP tests.
"RUN_TARGET=0 python -m numba.runtests -v -- numba.openmp.tests.test_openmp",
# Run device (cpu target) OpenMP tests.
"OMP_TARGET_OFFLOAD=mandatory TEST_DEVICE=host RUN_TARGET=1 python -m numba.runtests -v -- numba.openmp.tests.test_openmp.TestOpenmpTarget",
]
[tool.cibuildwheel.environment]
USE_CXX11_ABI = "1"
PIP_NO_INPUT = "1"
[tool.cibuildwheel.linux]
before-all = [
"yum install -y elfutils-libelf-devel libffi-devel clang-devel-20.1.8 llvm-devel-20.1.8",
]
[tool.cibuildwheel.linux.environment]
ENABLE_BUNDLED_LIBOMP = "1"
ENABLE_BUNDLED_LIBOMPTARGET = "1"
LLVM_DIR = "/usr/lib64/cmake/llvm"
CC = "/usr/bin/clang"
CXX = "/usr/bin/clang++"
[tool.cibuildwheel.macos]
before-all = ["bash buildscripts/cibuildwheel/setup-miniconda3.sh"]
[tool.cibuildwheel.macos.environment]
ENABLE_BUNDLED_LIBOMP = "1"
LLVM_DIR = "${PWD}/_stage/miniconda3/envs/llvmdev-${LLVM_VERSION}/lib/cmake/llvm"
CC = "${PWD}/_stage/miniconda3/envs/llvmdev-${LLVM_VERSION}/bin/clang"
CXX = "${PWD}/_stage/miniconda3/envs/llvmdev-${LLVM_VERSION}/bin/clang++"
# Set the deplioyment target to macOS 11.0.
MACOSX_DEPLOYMENT_TARGET = "11.0"
# Set the cmake prefix path to find libraries in the conda environment which is
# compatible with the macos target.
CMAKE_PREFIX_PATH = "${PWD}/_stage/miniconda3/envs/llvmdev-${LLVM_VERSION}/"