Skip to content

Commit

Permalink
Put python module under Imath subdirectory
Browse files Browse the repository at this point in the history
Signed-off-by: Larry Gritz <[email protected]>
  • Loading branch information
lgritz committed May 11, 2024
1 parent 61f1416 commit 34818e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/python/PyImathNumpy/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if(TARGET Python2::Python AND
DEBUG_POSTFIX ""
)
install(TARGETS imathnumpy_python2
DESTINATION "${CMAKE_INSTALL_LIBDIR}/python${Python2_VERSION_MAJOR}.${Python2_VERSION_MINOR}/site-packages"
DESTINATION "${CMAKE_INSTALL_LIBDIR}/python${Python2_VERSION_MAJOR}.${Python2_VERSION_MINOR}/site-packages/Imath"
)
endif()

Expand Down Expand Up @@ -51,6 +51,6 @@ if(TARGET Python3::Python AND
DEBUG_POSTFIX ""
)
install(TARGETS imathnumpy_python3
DESTINATION "${CMAKE_INSTALL_LIBDIR}/python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}/site-packages"
DESTINATION "${CMAKE_INSTALL_LIBDIR}/python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}/site-packages/Imath"
)
endif()
2 changes: 1 addition & 1 deletion src/python/config/ModuleDefine.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function(PYIMATH_DEFINE_MODULE modname)
)
install(TARGETS ${modname}_python3
EXPORT ${PROJECT_NAME}
DESTINATION "${CMAKE_INSTALL_LIBDIR}/python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}/site-packages"
DESTINATION "${CMAKE_INSTALL_LIBDIR}/python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}/site-packages/Imath"
)
endif()
endif()
Expand Down

0 comments on commit 34818e1

Please sign in to comment.