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"),