-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Troy D. Straszheim
committed
Nov 21, 2011
1 parent
962a1f1
commit bd27e5a
Showing
9 changed files
with
46 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
function(enable_python pkg_name) | ||
set(PACKAGE_NAME ${pkg_name}) | ||
configure_file(${catkin_EXTRAS_DIR}/__init__.py.in | ||
${CMAKE_BINARY_DIR}/gen/py/${pkg_name}/__init__.py | ||
@ONLY) | ||
${CMAKE_BINARY_DIR}/gen/py/${pkg_name}/__init__.py | ||
@ONLY) | ||
if(EXISTS ${${pkg_name}_SOURCE_DIR}/setup.py) | ||
assert(INSTALLED_PYTHONPATH) | ||
set(CMD "/usr/bin/env PYTHONPATH=${INSTALLED_PYTHONPATH} ${PYTHON_EXECUTABLE} setup.py install --install-layout=deb --prefix=${CMAKE_INSTALL_PREFIX} WORKING_DIRECTORY ${${pkg_name}_SOURCE_DIR}") | ||
install(CODE "message(COMMAND = ${CMD})") | ||
install(CODE "execute_process(COMMAND ${CMD})") | ||
endif() | ||
endfunction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
find_package(PythonInterp) | ||
execute_process(COMMAND ${PYTHON_EXECUTABLE} ${catkin_EXTRAS_DIR}/python_version.py | ||
OUTPUT_VARIABLE PYTHON_VERSION_XDOTY | ||
OUTPUT_STRIP_TRAILING_WHITESPACE) | ||
|
||
set(PYTHON_VERSION_XDOTY ${PYTHON_VERSION_XDOTY}) | ||
set(INSTALLED_PYTHONPATH ${CMAKE_INSTALL_PREFIX}/lib/python${PYTHON_VERSION_XDOTY}/dist-packages | ||
CACHE INTERNAL "This needs to be in pythonpath when setup.py install is called. And it needs to match. But setuptools won't tell us where it will install things.") | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters