summaryrefslogtreecommitdiff
blob: 292551181b6d81aa81e0f2547884853ae0c2ffc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Allow to install scripts in PYTHON_SCRIPTDIR.
Needed for Gentoo multi-python support.

Index: catkin-0.6.11/cmake/templates/python_distutils_install.sh.in
===================================================================
--- catkin-0.6.11.orig/cmake/templates/python_distutils_install.sh.in
+++ catkin-0.6.11/cmake/templates/python_distutils_install.sh.in
@@ -25,4 +25,4 @@ cd "@INSTALL_CMD_WORKING_DIRECTORY@"
     build --build-base "@CMAKE_CURRENT_BINARY_DIR@" \
     install \
     $DESTDIR_ARG \
-    @SETUPTOOLS_ARG_EXTRA@ --prefix="@CMAKE_INSTALL_PREFIX@" --install-scripts="@CMAKE_INSTALL_PREFIX@/@CATKIN_GLOBAL_BIN_DESTINATION@"
+    @SETUPTOOLS_ARG_EXTRA@ --prefix="@CMAKE_INSTALL_PREFIX@" --install-scripts="${PYTHON_SCRIPTDIR:-@CMAKE_INSTALL_PREFIX@/@CATKIN_GLOBAL_BIN_DESTINATION@}"