File tree Expand file tree Collapse file tree 3 files changed +19
-4
lines changed Expand file tree Collapse file tree 3 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -40,11 +40,11 @@ jobs:
40
40
- name : Build wheels
41
41
42
42
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 "
44
44
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"
48
48
49
49
- name : Upload distributions
50
50
uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ cmake_minimum_required(VERSION 3.18.0)
2
2
3
3
project (TensorArray_Python VERSION 0.1.0 LANGUAGES C CXX )
4
4
5
+ find_package (Python COMPONENTS Interpreter Development )
6
+ if (${Python_FOUND} )
7
+
5
8
include (CTest )
6
9
enable_testing ()
7
10
@@ -22,3 +25,5 @@ target_link_libraries(tensor2 PUBLIC TensorArray::Core)
22
25
set (CPACK_PROJECT_NAME ${PROJECT_NAME} )
23
26
set (CPACK_PROJECT_VERSION ${PROJECT_VERSION} )
24
27
include (CPack )
28
+
29
+ endif ()
Original file line number Diff line number Diff line change @@ -5,3 +5,13 @@ requires = [
5
5
" cmake"
6
6
]
7
7
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" ]
You can’t perform that action at this time.
0 commit comments