File tree 4 files changed +4
-8
lines changed
4 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 5
5
__pycache__ /
6
6
* .egg-info /*
7
7
dist /
8
+ * so
Original file line number Diff line number Diff line change @@ -3,20 +3,16 @@ find_package(Python COMPONENTS Interpreter Development)
3
3
if (${Python_FOUND} )
4
4
5
5
project (TensorArray_Python VERSION 0.1.0 LANGUAGES C CXX)
6
- set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_LIST_DIR} /lib)
7
- set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_LIST_DIR} /src/tensor_array/core)
8
- set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_LIST_DIR} /bin)
9
6
10
7
include (CTest)
11
8
enable_testing ()
12
9
13
10
add_subdirectory ("third_party/pybind11" EXCLUDE_FROM_ALL )
14
11
add_subdirectory ("tensor-array-repo/Tensor-Array" EXCLUDE_FROM_ALL )
15
- add_library (tensor2 SHARED src/tensor_array/_core/tensor_bind.cc)
12
+ pybind11_add_module (tensor2 SHARED src/tensor_array/_core/tensor_bind.cc)
16
13
17
14
target_include_directories (
18
15
tensor2
19
- PRIVATE "${CMAKE_CURRENT_LIST_DIR} /third_party/pybind11/include"
20
16
PRIVATE "${CMAKE_CURRENT_LIST_DIR} /tensor-array-repo/Tensor-Array/src"
21
17
PRIVATE ${Python_INCLUDE_DIRS}
22
18
)
@@ -29,6 +25,5 @@ set(CPACK_PROJECT_NAME ${PROJECT_NAME})
29
25
set (CPACK_PROJECT_VERSION ${PROJECT_VERSION} )
30
26
include (CPack)
31
27
32
- install (TARGETS tensor2 LIBRARY DESTINATION /src/tensor_array/core ARCHIVE DESTINATION lib)
33
28
endif ()
34
29
Original file line number Diff line number Diff line change @@ -130,11 +130,11 @@ def main():
130
130
131
131
setup (
132
132
name = "TensorArray" ,
133
- version = "0.0.1a02 " ,
133
+ version = "0.0.1a2 " ,
134
134
description = "A machine learning package" ,
135
135
long_description = long_description ,
136
136
ext_modules = [
137
- CMakeExtension ("tensor_array " )
137
+ CMakeExtension ("tensor2 " )
138
138
],
139
139
authors = "TensorArray-Creators" ,
140
140
url = "https://github.com/Tensor-Array/Tensor-Array-Python" ,
You can’t perform that action at this time.
0 commit comments