From 1cc1eef8bb1c7bfa0be3017aaa099ff0ffeb6fa6 Mon Sep 17 00:00:00 2001 From: Jeongseok Lee Date: Tue, 17 Sep 2024 08:30:05 -0700 Subject: [PATCH] Add dartpy target to install target --- python/dartpy/CMakeLists.txt | 7 +++---- scripts/build.sh | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/python/dartpy/CMakeLists.txt b/python/dartpy/CMakeLists.txt index b316e86714798..5430bc9c6196d 100644 --- a/python/dartpy/CMakeLists.txt +++ b/python/dartpy/CMakeLists.txt @@ -89,11 +89,10 @@ if(BUILD_SHARED_LIBS) ) endif() -# TODO: Fix installing dartpy to site-packages directory # Install the pybind module to site-packages directory -# install(TARGETS ${pybind_module} -# LIBRARY DESTINATION "${PYTHON_SITE_PACKAGES}" -# ) +install(TARGETS ${pybind_module} + LIBRARY DESTINATION "${PYTHON_SITE_PACKAGES}" +) list(REMOVE_ITEM dartpy_headers ${CMAKE_CURRENT_LIST_DIR}/eigen_geometry_pybind.h diff --git a/scripts/build.sh b/scripts/build.sh index cecfa60e1b2a5..6ea6bd6b0608b 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -270,5 +270,5 @@ if [ "$BUILD_DARTPY" = "ON" ]; then echo "Info: Running a Python example..." echo $PYTHONPATH cd $source_dir/python/examples/hello_world - # python3 main.py + python3 main.py fi