From 6f47c067493df5619c38bd13c15e857f4e95767f Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Mon, 29 Apr 2024 08:41:43 -0700 Subject: [PATCH] Bump Python to 3.8 on Windows Signed-off-by: Christophe Bedard --- dist/index.js | 3 ++- src/setup-ros-windows.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index b5bef75ed..b33d43a7e 100644 --- a/dist/index.js +++ b/dist/index.js @@ -7467,7 +7467,8 @@ const pip3Packages = ["lxml", "netifaces"]; */ function prepareRos2BuildEnvironment() { return __awaiter(this, void 0, void 0, function* () { - const python_dir = tc.find("Python", "3.7"); + // Currently targeted Python version for Windows according to REP 2000 + const python_dir = tc.find("Python", "3.8"); yield utils.exec(path.join(python_dir, "python"), [ "-c", "import sysconfig; print(sysconfig.get_config_var('BINDIR')); print(sysconfig.get_path('scripts'))", diff --git a/src/setup-ros-windows.ts b/src/setup-ros-windows.ts index 6d458b4d4..6dea6951d 100644 --- a/src/setup-ros-windows.ts +++ b/src/setup-ros-windows.ts @@ -18,7 +18,8 @@ const pip3Packages: string[] = ["lxml", "netifaces"]; * Install ROS 2 build tools. */ async function prepareRos2BuildEnvironment() { - const python_dir = tc.find("Python", "3.7"); + // Currently targeted Python version for Windows according to REP 2000 + const python_dir = tc.find("Python", "3.8"); await utils.exec( path.join(python_dir, "python"),