|
28 | 28 |
|
29 | 29 | PORTABLE_PYTHONS = { |
30 | 30 | "windows_x86": ( |
31 | | - "https://github.com/platformio/platformio-core-installer/releases/download/" |
32 | | - "v0.3.1/python-portable-windows_x86-3.7.7.tar.gz" |
| 31 | + "https://dl.bintray.com/platformio/dl-misc/" |
| 32 | + "python-portable-windows_x86-3.7.7.tar.gz" |
33 | 33 | ), |
34 | 34 | "windows_amd64": ( |
35 | | - "https://github.com/platformio/platformio-core-installer/releases/download/" |
36 | | - "v0.3.1/python-portable-windows_amd64-3.7.7.tar.gz" |
| 35 | + "https://dl.bintray.com/platformio/dl-misc/" |
| 36 | + "python-portable-windows_amd64-3.7.7.tar.gz" |
| 37 | + ), |
| 38 | + "darwin_x86_64": ( |
| 39 | + "https://dl.bintray.com/platformio/dl-misc/" |
| 40 | + "python-portable-darwin_x86_64-3.8.4.tar.gz" |
37 | 41 | ), |
38 | 42 | } |
39 | 43 |
|
@@ -72,15 +76,15 @@ def fetch_portable_python(dst): |
72 | 76 | url, os.path.join(os.path.join(dst, ".cache", "tmp"), os.path.basename(url)) |
73 | 77 | ) |
74 | 78 |
|
75 | | - python_dir = os.path.join(dst, "python37") |
| 79 | + python_dir = os.path.join(dst, "python3") |
76 | 80 | util.safe_remove_dir(python_dir) |
77 | 81 | util.safe_create_dir(python_dir, raise_exception=True) |
78 | 82 |
|
79 | 83 | log.debug("Unpacking portable python...") |
80 | 84 | util.unpack_archive(archive_path, python_dir) |
81 | 85 | if util.IS_WINDOWS: |
82 | 86 | return os.path.join(python_dir, "python.exe") |
83 | | - return os.path.join(python_dir, "python") |
| 87 | + return os.path.join(python_dir, "bin", "python3") |
84 | 88 | except: # pylint:disable=bare-except |
85 | 89 | log.debug("Could not download portable python") |
86 | 90 |
|
|
0 commit comments