forked from esol-community/ament_virtualenv
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix broken ament_install_python function The upstream package had copied this from catkin_virtualenv and updated it for ament. But the templates were not copied, and some of the cmake variables were broken and not correct. This patch fixes this by copying the install template, fixing the broken variables, and removing the "devel" logic as this doesn't apply to ROS2 builds. * Revert "Remove catkin_pkg in favor of ament_index_python (#4)" This reverts commit 8cbdec1. * Revert "Fix find_in_workspaces to work with bundle prefix paths (#3)" This reverts commit 43a3c4d. * Resolve workspace paths before searching workspaces The workspace paths included the project name and this directory may not even exist yet. This caused os.walk() to return an empty list. Fix this by resolving the paths first to remove any ".." paths and in turn remove the project name from the overall workspace path. * Fix workspace path checks, and support bundle paths
- Loading branch information
Showing
5 changed files
with
128 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ "${ARG_RENAME_PROCESS}" = "TRUE" ]; then | ||
exec ${${PROJECT_NAME}_VENV_INSTALL_DIR}/bin/python - "$@" <<- EOF | ||
import re | ||
import sys | ||
from setproctitle import setproctitle | ||
program_path = "${CMAKE_INSTALL_PREFIX}/${program_install_location}/${program_basename}" | ||
setproctitle(' '.join([program_path] + sys.argv[1:])) | ||
exec(open(program_path).read()) | ||
EOF | ||
else | ||
exec ${${PROJECT_NAME}_VENV_INSTALL_DIR}/bin/python ${CMAKE_INSTALL_PREFIX}/${program_install_location}/${program_basename} "$@" | ||
fi | ||
|
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
Empty file.
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