From ed63e706eaf65d6b2804ef3d456c5173af0d7fab Mon Sep 17 00:00:00 2001 From: Kei Okada Date: Mon, 30 Dec 2024 08:29:27 +0000 Subject: [PATCH] [nfc_ros] nfcpy requries python3.6+, skip kinetic which has python3.5 --- nfc_ros/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nfc_ros/CMakeLists.txt b/nfc_ros/CMakeLists.txt index 98e3d1c62..488994054 100644 --- a/nfc_ros/CMakeLists.txt +++ b/nfc_ros/CMakeLists.txt @@ -20,7 +20,7 @@ catkin_package( CATKIN_DEPENDS message_runtime ) -if ("$ENV{ROS_DISTRO}" MATCHES "indigo") +if ("$ENV{ROS_DISTRO}" MATCHES "indigo" OR "$ENV{ROS_DISTRO}" MATCHES "kinetic") message(WARNING "nfc_ros requires python3.6 or newer. For indigo, virtualenv generation is skipped.") else() catkin_generate_virtualenv( @@ -36,7 +36,7 @@ install(FILES requirements.txt DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} ) -if(CATKIN_ENABLE_TESTING) +if(CATKIN_ENABLE_TESTING AND ("$ENV{ROS_DISTRO}" MATCHES "indigo" OR "$ENV{ROS_DISTRO}" MATCHES "kinetic")) find_package(rostest REQUIRED) add_rostest(test/test_rospy_node.test DEPENDENCIES ${PROJECT_NAME}_generate_virtualenv