Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/setup-ros-windows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ import * as utils from "./utils";

const binaryReleases: { [index: string]: string } = {
humble:
"https://github.com/ros2/ros2/releases/download/humble-20250331/ros2-humble-20250331-windows-release-amd64.zip",
iron: "https://github.com/ros2/ros2/releases/download/release-iron-20241204/ros2-iron-20241204-windows-release-amd64.zip",
"https://github.com/ros2/ros2/releases/download/release-humble-20260220/ros2-humble-20260220-windows-release-amd64.zip",
jazzy:
"https://github.com/ros2/ros2/releases/download/release-jazzy-20250430/ros2-jazzy-20250407-windows-release-amd64.zip",
"https://github.com/ros2/ros2/releases/download/release-jazzy-20260128/ros2-jazzy-20260128-windows-release-amd64.zip",
kilted:
"https://github.com/ros2/ros2/releases/download/release-kilted-20250523/ros2-kilted-20250523-windows-release-amd64.zip",
"https://github.com/ros2/ros2/releases/download/release-kilted-20250728/ros2-kilted-20250728-windows-release-amd64.zip",
};

const pip3Packages: string[] = ["lxml", "netifaces"];
Expand All @@ -23,7 +22,7 @@ const pip3Packages: string[] = ["lxml", "netifaces"];
*/
async function prepareRos2BuildEnvironment() {
// Currently targeted Python version for Windows according to REP 2000
const python_dir = tc.find("Python", "3.8");
const python_dir = tc.find("Python", "3.10");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is tricky because the Python version on Windows is not the same across all currently active distros. I think REP 2000 hasn't been updated since the Windows move to Pixi. Jazzy & Kilted are on Python 3.12.3 (https://github.com/ros2/ros2/blob/jazzy/pixi.toml#L99) and Humble is on 3.10.6 (https://github.com/ros2/ros2/blob/humble/pixi.toml#L103). However, since we already have just a single version not depending on the actual distro used, bumping to the new lower version is fine.


await utils.exec(
path.join(python_dir, "python"),
Expand Down
Loading