Skip to content

Commit 34818e1

Browse files
committed
Put python module under Imath subdirectory
Signed-off-by: Larry Gritz <[email protected]>
1 parent 61f1416 commit 34818e1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/python/PyImathNumpy/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if(TARGET Python2::Python AND
2323
DEBUG_POSTFIX ""
2424
)
2525
install(TARGETS imathnumpy_python2
26-
DESTINATION "${CMAKE_INSTALL_LIBDIR}/python${Python2_VERSION_MAJOR}.${Python2_VERSION_MINOR}/site-packages"
26+
DESTINATION "${CMAKE_INSTALL_LIBDIR}/python${Python2_VERSION_MAJOR}.${Python2_VERSION_MINOR}/site-packages/Imath"
2727
)
2828
endif()
2929

@@ -51,6 +51,6 @@ if(TARGET Python3::Python AND
5151
DEBUG_POSTFIX ""
5252
)
5353
install(TARGETS imathnumpy_python3
54-
DESTINATION "${CMAKE_INSTALL_LIBDIR}/python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}/site-packages"
54+
DESTINATION "${CMAKE_INSTALL_LIBDIR}/python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}/site-packages/Imath"
5555
)
5656
endif()

src/python/config/ModuleDefine.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ function(PYIMATH_DEFINE_MODULE modname)
156156
)
157157
install(TARGETS ${modname}_python3
158158
EXPORT ${PROJECT_NAME}
159-
DESTINATION "${CMAKE_INSTALL_LIBDIR}/python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}/site-packages"
159+
DESTINATION "${CMAKE_INSTALL_LIBDIR}/python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}/site-packages/Imath"
160160
)
161161
endif()
162162
endif()

0 commit comments

Comments
 (0)