Skip to content

Commit

Permalink
Revert "remove explicit invocation of Python executable when calling …
Browse files Browse the repository at this point in the history
…executable Python scripts (ros/genpy#23)"

This reverts commit 3a8d043.
  • Loading branch information
dirk-thomas committed Dec 28, 2013
1 parent 5ab9ed4 commit 94a932c
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmake/catkin_package_xml.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ macro(_catkin_package_xml dest_dir)
# stamp and parse package.xml
stamp(${_PACKAGE_XML_DIRECTORY}/package.xml)
file(MAKE_DIRECTORY ${dest_dir})
safe_execute_process(COMMAND
safe_execute_process(COMMAND ${PYTHON_EXECUTABLE}
${catkin_EXTRAS_DIR}/parse_package_xml.py
${_PACKAGE_XML_DIRECTORY}/package.xml
${dest_dir}/package.cmake)
Expand Down
2 changes: 1 addition & 1 deletion cmake/catkin_python_setup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function(catkin_python_setup)
assert(CATKIN_ENV)
assert(PYTHON_EXECUTABLE)
set(cmd
${CATKIN_ENV}
${CATKIN_ENV} ${PYTHON_EXECUTABLE}
${catkin_EXTRAS_DIR}/interrogate_setup_dot_py.py
${PROJECT_NAME}
${${PROJECT_NAME}_SOURCE_DIR}/setup.py
Expand Down
Empty file modified cmake/interrogate_setup_dot_py.py
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion cmake/list_insert_in_workspace_order.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ macro(list_insert_in_workspace_order listname)
assert(CATKIN_ENV)
assert(PYTHON_EXECUTABLE)
set(cmd
${CATKIN_ENV}
${CATKIN_ENV} ${PYTHON_EXECUTABLE}
${catkin_EXTRAS_DIR}/order_paths.py
${${PROJECT_NAME}_BINARY_DIR}/catkin_generated/ordered_paths.cmake
--paths-to-order ${ARGN}
Expand Down
Empty file modified cmake/order_paths.py
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion cmake/python.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# the CMake variable PYTHON_INSTALL_DIR has the same value as the Python function catkin.builder.get_python_install_dir()

find_package(PythonInterp REQUIRED)
execute_process(COMMAND ${catkin_EXTRAS_DIR}/python_version.py
execute_process(COMMAND ${PYTHON_EXECUTABLE} ${catkin_EXTRAS_DIR}/python_version.py
OUTPUT_VARIABLE PYTHON_VERSION_XDOTY
OUTPUT_STRIP_TRAILING_WHITESPACE)

Expand Down
Empty file modified cmake/python_version.py
100755 → 100644
Empty file.

0 comments on commit 94a932c

Please sign in to comment.