Skip to content

Commit 47772d5

Browse files
test 01
1 parent 32a436b commit 47772d5

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

.github/workflows/python-publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ jobs:
4040
- name: Build wheels
4141
uses: pypa/[email protected]
4242
env:
43-
CIBW_BEFORE_BUILD_LINUX: "chmod +x {package}/tensor-array-repo/Tensor-Array/scripts/actions/install-cuda-ubuntu.sh && {package}/tensor-array-repo/Tensor-Array/scripts/actions/install-cuda-ubuntu.sh"
43+
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.8"
4444
with:
45-
package-dir: .
46-
output-dir: wheelhouse
47-
config-file: "{package}/pyproject.toml"
45+
package-dir: .
46+
output-dir: wheelhouse
47+
config-file: "{package}/pyproject.toml"
4848

4949
- name: Upload distributions
5050
uses: actions/upload-artifact@v4

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ cmake_minimum_required(VERSION 3.18.0)
22

33
project(TensorArray_Python VERSION 0.1.0 LANGUAGES C CXX)
44

5+
find_package(Python COMPONENTS Interpreter Development)
6+
if (${Python_FOUND})
7+
58
include(CTest)
69
enable_testing()
710

@@ -22,3 +25,5 @@ target_link_libraries(tensor2 PUBLIC TensorArray::Core)
2225
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
2326
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
2427
include(CPack)
28+
29+
endif()

pyproject.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,13 @@ requires = [
55
"cmake"
66
]
77
build-backend = "setuptools.build_meta"
8+
9+
[tools.cibuildwheel]
10+
xbuild-tools = ["cmake", "ninja"]
11+
12+
[tools.cibuildwheel.linux]
13+
before-all = [
14+
"chmod +x {package}/tensor-array-repo/Tensor-Array/scripts/actions/install-cuda-ubuntu.sh",
15+
"{package}/tensor-array-repo/Tensor-Array/scripts/actions --cuda=12.9 --temp=/tmp/cuda-temp"
16+
]
17+
xbuild-tools = ["cmake", "ninja"]

0 commit comments

Comments
 (0)