|
13 | 13 | import nox # pylint: disable=import-error
|
14 | 14 |
|
15 | 15 | debugpy_urls = {
|
16 |
| - "MacOS": { |
17 |
| - "url": "https://files.pythonhosted.org/packages/b1/46/0304622c2c81215298294eba53c038c6d339b783928117687e756ade7def/debugpy-1.8.0-cp310-cp310-macosx_11_0_x86_64.whl", |
18 |
| - "hash": "7fb95ca78f7ac43393cd0e0f2b6deda438ec7c5e47fa5d38553340897d2fbdfb", |
| 16 | + "any": { |
| 17 | + "url": "https://files.pythonhosted.org/packages/39/2f/c8a8cfac6c7fa3d9e163a6bf46e6d27d027b7a1331028e99a6ef7fd3699d/debugpy-1.7.0-py2.py3-none-any.whl", |
| 18 | + "hash": "f6de2e6f24f62969e0f0ef682d78c98161c4dca29e9fb05df4d2989005005502", |
19 | 19 | },
|
20 |
| - "Windows64": { |
21 |
| - "url": "https://files.pythonhosted.org/packages/61/ad/ba48c35ed40238f05dcf81a10dcafb743ee90f23d2d1a41ba4f030dc0626/debugpy-1.8.0-cp310-cp310-win_amd64.whl", |
22 |
| - "hash": "5d9de202f5d42e62f932507ee8b21e30d49aae7e46d5b1dd5c908db1d7068637", |
| 20 | + "macOS": { |
| 21 | + "url": "https://files.pythonhosted.org/packages/bd/a3/5e37ce13c7dd850b72a52be544a058ed49606ebbbf8b95b2ba3c1db5620a/debugpy-1.7.0-cp311-cp311-macosx_11_0_universal2.whl", |
| 22 | + "hash": "538765a41198aa88cc089295b39c7322dd598f9ef1d52eaae12145c63bf9430a", |
23 | 23 | },
|
24 |
| - "Linux": { |
25 |
| - "url": "https://files.pythonhosted.org/packages/01/18/4be69e4b466f6452ac42b2a2cb7e581a3f1af194f1dd563d5bdabdcd8c21/debugpy-1.8.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", |
26 |
| - "hash": "ef9ab7df0b9a42ed9c878afd3eaaff471fce3fa73df96022e1f5c9f8f8c87ada", |
| 24 | + "linux": { |
| 25 | + "url": "https://files.pythonhosted.org/packages/b4/fc/087324d46dab8e21e084ce2cf670fa7e524ab5e7691692438e4987bd3ecb/debugpy-1.7.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", |
| 26 | + "hash": "c7e8cf91f8f3f9b5fad844dd88427b85d398bda1e2a0cd65d5a21312fcbc0c6f", |
27 | 27 | },
|
28 |
| - "Windows32": { |
29 |
| - "ulr": "https://files.pythonhosted.org/packages/1a/62/325e4b4b512b8b17fa10769bd7e8c64bc3e9957155c1f5eac70df7660e14/debugpy-1.8.0-cp310-cp310-win32.whl", |
30 |
| - "hash": "a8b7a2fd27cd9f3553ac112f356ad4ca93338feadd8910277aff71ab24d8775f", |
| 28 | + "win32": { |
| 29 | + "ulr": "https://files.pythonhosted.org/packages/52/59/3591e9f709b7ee4d3a926a8903a395669cd0e0279204a94b6acccf6ed6ee/debugpy-1.7.0-cp311-cp311-win32.whl", |
| 30 | + "hash": "18a69f8e142a716310dd0af6d7db08992aed99e2606108732efde101e7c65e2a", |
| 31 | + }, |
| 32 | + "win64": { |
| 33 | + "url": "https://files.pythonhosted.org/packages/51/59/84ebd58d3e9de33a54ca8aa4532e03906e5458092dafe240264c2937a99b/debugpy-1.7.0-cp311-cp311-win_amd64.whl", |
| 34 | + "hash": "7515a5ba5ee9bfe956685909c5f28734c1cecd4ee813523363acfe3ca824883a", |
31 | 35 | },
|
32 | 36 | }
|
33 | 37 |
|
@@ -138,14 +142,16 @@ def install_bundled_libs(session):
|
138 | 142 |
|
139 | 143 | target = os.environ.get("VSCETARGET", "")
|
140 | 144 | print("target:", target)
|
141 |
| - if "linux" in target: |
142 |
| - download_url(f"{os.getcwd()}/bundled/libs", debugpy_urls["Linux"]) |
143 |
| - elif "win32" in target: |
144 |
| - download_url(f"{os.getcwd()}/bundled/libs", debugpy_urls["Windows64"]) |
145 |
| - elif "darwin" in target: |
146 |
| - download_url(f"{os.getcwd()}/bundled/libs", debugpy_urls["MacOS"]) |
| 145 | + if "darwin" in target: |
| 146 | + download_url(f"{os.getcwd()}/bundled/libs", debugpy_urls["macOS"]) |
| 147 | + elif "win32-ia32" == target: |
| 148 | + download_url(f"{os.getcwd()}/bundled/libs", debugpy_urls["win32"]) |
| 149 | + elif "win32-x64" == target: |
| 150 | + download_url(f"{os.getcwd()}/bundled/libs", debugpy_urls["win64"]) |
| 151 | + elif "linux-x64" == target: |
| 152 | + download_url(f"{os.getcwd()}/bundled/libs", debugpy_urls["linux"]) |
147 | 153 | else:
|
148 |
| - _install_package(f"{os.getcwd()}/bundled/libs", "debugpy") |
| 154 | + download_url(f"{os.getcwd()}/bundled/libs", debugpy_urls["any"]) |
149 | 155 |
|
150 | 156 |
|
151 | 157 | @nox.session(python="3.7")
|
|
0 commit comments