Skip to content

Commit

Permalink
Fixes to Python build/install process. Related to #159.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackjansen committed Nov 15, 2024
1 parent ae14551 commit 06c0e7b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CMakeFiles/CwipcPythonSupport.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ macro(cwipc_build_wheel)
# We need a trick to pass CWIPC_VERSION in the environment at build time: use cmake -E env.
add_custom_target("${MYARGS_NAME}_wheel"
ALL
COMMAND ${CMAKE_COMMAND} -E rm -rf ${MYARGS_SOURCEDIR}/build ${MYARGS_SOURCEDIR}/{${MYARGS_NAME}.egg_info
COMMAND ${CMAKE_COMMAND} -E env "CWIPC_VERSION=${CWIPC_VERSION}" ${Python3_EXECUTABLE} -m build --wheel --no-isolation --outdir ${MYARGS_WHEELDIR} ${MYARGS_SOURCEDIR}
COMMAND ${Python3_EXECUTABLE} -m pip uninstall -qq -y "${MYARGS_NAME}"
COMMAND ${Python3_EXECUTABLE} -m pip install -e ${MYARGS_SOURCEDIR}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
endmacro()
Expand Down
2 changes: 1 addition & 1 deletion cwipc_codec
2 changes: 1 addition & 1 deletion cwipc_kinect
2 changes: 1 addition & 1 deletion cwipc_realsense2
2 changes: 1 addition & 1 deletion cwipc_util

0 comments on commit 06c0e7b

Please sign in to comment.