Skip to content

Commit 028d206

Browse files
committed
Improve support for custom Python installations // Resolve platformio#2353
1 parent 534279f commit 028d206

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

get-platformio.py

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

pioinstaller/python.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,15 @@ def find_compatible_pythons(
175175
ignore_list = []
176176
for p in ignore_pythons or []:
177177
ignore_list.extend(glob.glob(p))
178-
exenames = ["python3", "python"]
178+
exenames = [
179+
# "python3.11",
180+
"python3.10",
181+
"python3.9",
182+
"python3.8",
183+
"python3.7",
184+
"python3",
185+
"python",
186+
]
179187
if util.IS_WINDOWS:
180188
exenames = ["%s.exe" % item for item in exenames]
181189
log.debug("Current environment PATH %s", os.getenv("PATH"))

0 commit comments

Comments
 (0)