← Back to issue list

set ROS_PYTHON_VERSION for rosdep

View original Github issue

Metadata

Project
snapcraft
Number
#3324
Type
pull request
State
merged
Author
artivis
Labels
Created
Updated
Closed

Current evaluation

Merged a two-line update setting ROS_PYTHON_VERSION=2 for the rosdep environment, resolving a harmless defaulting warning. Approved by two reviewers and passed CI checks.

Suggested action:

No scores available.

Issue body

Sets `ROS_PYTHON_VERSION = 2` for the env used by `rosdep` to fix an harmless but annoying warning: ```terminal WARNING: ROS_PYTHON_VERSION is unset. Defaulting to 2 ``` Signed-off-by: artivis <deray.jeremie@gmail.com> - [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [ ] Have you successfully run `./runtests.sh static`? - [ ] Have you successfully run `./runtests.sh tests/unit`? -----

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged a two-line update setting ROS_PYTHON_VERSION=2 for the rosdep environment, resolving a harmless defaulting warning. Approved by two reviewers and passed CI checks.
qwen3.6-35b-a3b-mtp-q6 Merged changes setting ROS_PYTHON_VERSION=2 in the rosdep environment. This eliminates a harmless warning about the variable being unset, preventing automatic defaulting and ensuring consistent execution.
qwen3.6-35b-a3b-mtp-q6 Merged changes setting ROS_PYTHON_VERSION to 2 in the rosdep environment, resolving a harmless default warning.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#3346 Fix rosdep ROS_PYTHON_VERSION snapcraft merged Merged. Sets ROS_PYTHON_VERSION to 3 for ROS 2 rosdep usage, correcting underlying behavior rather than merely silencing warnings. Approved by reviewers and merged following low-risk assessment.
89%
#3313 Set ROS_VERSION for rosdep in plugins v1 snapcraft merged Merged changes set the ROS_VERSION environment variable for rosdep in plugins v1. Approved by two reviewers and passing CI, this update enables conditional dependency resolution in package.xml files for ROS 1 and ROS 2.
73%