Skip to content

Commit 340f8a4

Browse files
committed
put environment vars all on one line in pyproject
1 parent ed7bee3 commit 340f8a4

2 files changed

Lines changed: 3 additions & 11 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
yum-config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/cuda-rhel7.repo
2424
yum install -y cuda-nvcc-11-8 cuda-cudart-devel-11-8
2525
export PATH=$PATH:/usr/local/cuda-11.8/bin
26+
export CUDA_PATH=/usr/local/cuda-11.8/bin
2627
export CUDA_HOME=/usr/local/cuda-11.8
2728
export CUDA_ROOT=/usr/local/cuda-11.8
2829
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-11.8/lib64

pyproject.toml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,11 @@ test-requires = "pytest scipy torch"
5151
test-command = "pytest {project}/tests"
5252
# Don't bundle CUDA libraries with the wheel
5353
repair-wheel-command = "auditwheel repair -w {dest_dir} {wheel} --exclude libcuda.so.1 --exclude 'libcudart.so.*'"
54-
environment = {
55-
PATH="$PATH:/usr/local/cuda-11.8/bin",
56-
CUDA_HOME="/usr/local/cuda-11.8",
57-
CUDA_ROOT="/usr/local/cuda-11.8",
58-
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-11.8/lib64",
59-
CUDACXX="/usr/local/cuda-11.8/bin/nvcc"
60-
}
54+
environment = { PATH="$PATH:/usr/local/cuda-11.8/bin", CUDA_PATH="/usr/local/cuda-11.8/bin", CUDA_HOME="/usr/local/cuda-11.8", CUDA_ROOT="/usr/local/cuda-11.8", LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-11.8/lib64", CUDACXX="/usr/local/cuda-11.8/bin/nvcc" }
6155

6256
[tool.cibuildwheel.windows]
6357
test-command = "pytest {project}/tests/test_scalar.py"
64-
environment = {
65-
CUDA_PATH="C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.4",
66-
PATH="$PATH:C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.4\\bin"
67-
}
58+
environment = { CUDA_PATH="C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.4", PATH="$PATH:C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.4\\bin" }
6859

6960
[tool.cibuildwheel.macos]
7061
test-command = "pytest {project}/tests/test_scalar.py"

0 commit comments

Comments
 (0)