Skip to content

Commit

Permalink
[nfc_ros] nfcpy requries python3.6+, skip kinetic which has python3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed Dec 30, 2024
1 parent 7c8a968 commit ed63e70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nfc_ros/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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
Expand Down

0 comments on commit ed63e70

Please sign in to comment.