Skip to content

Commit

Permalink
dialogflow_task_executive/gdrive_ros: use --cert for catkin_virtualen…
Browse files Browse the repository at this point in the history
…v for indigo
  • Loading branch information
k-okada committed Jul 10, 2024
1 parent 9bf8b50 commit 4fac155
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dialogflow_task_executive/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ elseif("$ENV{ROS_DISTRO}" STREQUAL "indigo")
COMMAND cp ${CMAKE_CURRENT_BINARY_DIR}/requirements.txt.indigo ${CMAKE_CURRENT_SOURCE_DIR}/requirements.txt
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
catkin_generate_virtualenv(PYTHON_INTERPRETER python2)
file(DOWNLOAD http://curl.haxx.se/ca/cacert.pem ${CMAKE_CURRENT_BINARY_DIR}/cacert.pem)
catkin_generate_virtualenv(PYTHON_INTERPRETER python2
# https://stackoverflow.com/questions/25981703/pip-install-fails-with-connection-error-ssl-certificate-verify-failed
EXTRA_PIP_ARGS -vvv --cert=${CMAKE_CURRENT_BINARY_DIR}/cacert.pem)
elseif("$ENV{ROS_DISTRO}" STRGREATER "melodic")
catkin_generate_virtualenv(
INPUT_REQUIREMENTS requirements.in.noetic
Expand Down
10 changes: 10 additions & 0 deletions gdrive_ros/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,20 @@ catkin_package(
message_runtime
)

if("$ENV{ROS_DISTRO}" STREQUAL "indigo")
file(DOWNLOAD http://curl.haxx.se/ca/cacert.pem ${CMAKE_CURRENT_BINARY_DIR}/cacert.pem)
catkin_generate_virtualenv(
PYTHON_INTERPRETER python3
CHECK_VENV FALSE
# https://stackoverflow.com/questions/25981703/pip-install-fails-with-connection-error-ssl-certificate-verify-failed
EXTRA_PIP_ARGS -vvv --cert=${CMAKE_CURRENT_BINARY_DIR}/cacert.pem
)
else()
catkin_generate_virtualenv(
PYTHON_INTERPRETER python3
CHECK_VENV FALSE
)
endif()


catkin_install_python(PROGRAMS node_scripts/gdrive_server_node.py node_scripts/sample_gdrive_rospy_client.py
Expand Down

0 comments on commit 4fac155

Please sign in to comment.