From 57be79291ffb76eae0befd5386f50fcce1f1ec41 Mon Sep 17 00:00:00 2001 From: Mikael Arguedas Date: Mon, 1 Jun 2020 19:07:42 +0200 Subject: [PATCH 1/2] fix shebang line for python3 Signed-off-by: Mikael Arguedas --- pluginlib/scripts/pluginlib_headers_migration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pluginlib/scripts/pluginlib_headers_migration.py b/pluginlib/scripts/pluginlib_headers_migration.py index 2b5dece1..c1beca20 100755 --- a/pluginlib/scripts/pluginlib_headers_migration.py +++ b/pluginlib/scripts/pluginlib_headers_migration.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Software License Agreement (BSD License) # # Copyright (c) 2018, Open Source Robotics Foundation, Inc. From 30f90233fefcbbbc34459f774a69aa8330d895b1 Mon Sep 17 00:00:00 2001 From: Mikael Arguedas Date: Fri, 4 Dec 2020 00:44:53 +0100 Subject: [PATCH 2/2] use catkin_install_python instead of changing shebang line Signed-off-by: Mikael Arguedas --- pluginlib/CMakeLists.txt | 2 +- pluginlib/scripts/pluginlib_headers_migration.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pluginlib/CMakeLists.txt b/pluginlib/CMakeLists.txt index 289c5aff..ea1095b1 100644 --- a/pluginlib/CMakeLists.txt +++ b/pluginlib/CMakeLists.txt @@ -39,5 +39,5 @@ endif() install(DIRECTORY include/pluginlib/ DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}) -install(PROGRAMS scripts/pluginlib_headers_migration.py +catkin_install_python(PROGRAMS scripts/pluginlib_headers_migration.py DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}) diff --git a/pluginlib/scripts/pluginlib_headers_migration.py b/pluginlib/scripts/pluginlib_headers_migration.py index c1beca20..2b5dece1 100755 --- a/pluginlib/scripts/pluginlib_headers_migration.py +++ b/pluginlib/scripts/pluginlib_headers_migration.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python # Software License Agreement (BSD License) # # Copyright (c) 2018, Open Source Robotics Foundation, Inc.