File tree 6 files changed +32
-3
lines changed
6 files changed +32
-3
lines changed Original file line number Diff line number Diff line change 1
1
[submodule "tensor-array-repo/Tensor-Array "]
2
2
path = tensor-array-repo/Tensor-Array
3
3
url = https://github.com/Tensor-Array/Tensor-Array
4
+ [submodule "third_party/pybind11 "]
5
+ path = third_party/pybind11
Original file line number Diff line number Diff line change 4
4
"name" : " Linux" ,
5
5
"includePath" : [
6
6
" ${workspaceFolder}/**" ,
7
- " ${workspaceFolder}/.venv/lib/python3.10/site-packages /pybind11/include/**" ,
7
+ " ${workspaceFolder}/third_party /pybind11/include/**" ,
8
8
" /usr/include/python3.10/**" ,
9
9
" ${workspaceFolder}/tensor-array-repo/Tensor-Array/src/**"
10
10
],
Original file line number Diff line number Diff line change @@ -10,19 +10,20 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/bin)
10
10
include (CTest)
11
11
enable_testing ()
12
12
13
+ add_subdirectory ("third_party/pybind11" EXCLUDE_FROM_ALL )
13
14
add_subdirectory ("tensor-array-repo/Tensor-Array" EXCLUDE_FROM_ALL )
14
15
add_library (tensor2 SHARED scripts/cpp/tensor_bind.cc)
15
16
16
17
target_include_directories (
17
18
tensor2
18
- PRIVATE "${CMAKE_CURRENT_LIST_DIR} /.venv/lib/python3.10/site-packages /pybind11/include"
19
+ PRIVATE "${CMAKE_CURRENT_LIST_DIR} /third_party /pybind11/include"
19
20
PRIVATE "${CMAKE_CURRENT_LIST_DIR} /tensor-array-repo/Tensor-Array/src"
20
21
PRIVATE ${Python_INCLUDE_DIRS}
21
22
)
22
23
23
24
SET_TARGET_PROPERTIES (tensor2 PROPERTIES PREFIX "" )
24
25
25
- target_link_libraries (tensor2 PUBLIC TensorArray::Core)
26
+ target_link_libraries (tensor2 PRIVATE TensorArray::Core)
26
27
27
28
set (CPACK_PROJECT_NAME ${PROJECT_NAME} )
28
29
set (CPACK_PROJECT_VERSION ${PROJECT_VERSION} )
Original file line number Diff line number Diff line change
1
+ from setuptools import setup
2
+ from setuptools .command .develop import develop
3
+ from setuptools .command .install import install
4
+ from setuptools .command .build_ext import build_ext
5
+
6
+ class PostDevelopCommand (develop ):
7
+ """Post-installation for development mode."""
8
+ def run (self ):
9
+ develop .run (self )
10
+ print ("TensorArray developed." )
11
+ # PUT YOUR POST-INSTALL SCRIPT HERE or CALL A FUNCTION
12
+
13
+ class PostInstallCommand (install ):
14
+ """Post-installation for installation mode."""
15
+ def run (self ):
16
+ install .run (self )
17
+ print ("TensorArray installed." )
18
+ # PUT YOUR POST-INSTALL SCRIPT HERE or CALL A FUNCTION
19
+
20
+ setup (
21
+ cmdclass = {
22
+ 'develop' : PostDevelopCommand ,
23
+ 'install' : PostInstallCommand ,
24
+ },
25
+ )
Original file line number Diff line number Diff line change
1
+ Subproject commit aec6cc5406edb076f5a489c2d7f84bb07052c4a3
You can’t perform that action at this time.
0 commit comments