Skip to content

Commit

Permalink
Add environment PYTHONPATH, #123.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Gerkey committed Apr 24, 2012
1 parent 1e45c25 commit 19b316c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmake/templates/python_distutils_install.sh.in
Expand Up @@ -17,8 +17,11 @@ fi
cd @INSTALL_CMD_WORKING_DIRECTORY@

# todo --install-layout=deb per platform
# Note that PYTHONPATH is pulled from the environment to support installing
# into one location when some dependencies were installed in another
# location, #123.
/usr/bin/env \
PYTHONPATH=@INSTALLED_PYTHONPATH@:@CMAKE_BINARY_DIR@/gen/py \
PYTHONPATH=@INSTALLED_PYTHONPATH@:@CMAKE_BINARY_DIR@/gen/py:$PYTHONPATH \
CATKIN_BINARY_DIR=@CMAKE_BINARY_DIR@ \
@PYTHON_EXECUTABLE@ \
@CMAKE_CURRENT_SOURCE_DIR@/setup.py \
Expand Down

0 comments on commit 19b316c

Please sign in to comment.