Skip to content

Commit

Permalink
Bump Python to 3.8 on Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Christophe Bedard <christophe.bedard@apex.ai>
  • Loading branch information
christophebedard committed Apr 30, 2024
1 parent 1692fc1 commit 6f47c06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'))",
Expand Down
3 changes: 2 additions & 1 deletion src/setup-ros-windows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 6f47c06

Please # to comment.