-
Notifications
You must be signed in to change notification settings - Fork 251
Expand file tree
/
Copy pathpyproject.toml
More file actions
66 lines (59 loc) · 1.36 KB
/
Copy pathpyproject.toml
File metadata and controls
66 lines (59 loc) · 1.36 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
[tool.black]
line-length = 100
[build-system]
requires = [
"setuptools",
"wheel",
"Cython",
"numpy",
]
build-backend = "setuptools.build_meta"
[project]
name="tigre"
version="3.1.3"
dependencies = [
"matplotlib",
"numpy>=1.20.0",
"scipy",
"h5py",
"tqdm"
]
authors=[
{name = "Ander Biguri"},
{name = "Reuben Lindroos"},
{name = "Sam Loescher"},
]
license={text="BSD-3-Clause"}
requires-python = ">=3.10,<3.15"
[dependency-groups]
dev = [
"black~=26.3",
"flake8~=3.8",
"flake8-annotations~=2.5",
"flake8-bugbear~=20.11",
"flake8-docstrings~=1.5",
"flake8-import-order~=0.18",
"pep8-naming~=0.11",
"pre-commit~=2.10",
]
[tool.setuptools.packages.find]
where = ["Python"]
[tool.setuptools.package-data]
"tigre.utilities.cuda_interface" = ["*.pyx", "*.pxd", "*.cpp"]
[tool.cibuildwheel]
build-frontend = "build[uv]"
skip = "pp* *musl*"
archs = ["native"]
[tool.cibuildwheel.linux]
#CUDA Installation
before-all = """
rpm --import https://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/7fa2af80.pub &&
yum-config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/cuda-rhel7.repo &&
yum clean all &&
yum -y install cuda-nvcc-12-4 cuda-cudart-devel-12-4 libcurand-devel-12-4 &&
ls -al /usr/local &&
export PATH=$PATH:/usr/local/cuda/bin &&
export CUDA_PATH=/usr/local/cuda &&
nvcc --version &&
export BUILD_WITH_CUDA=1
"""