File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 9
9
10
10
11
11
PLATFORMS = [
12
- 'macosx_10_6_x86_64.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64 ' ,
12
+ 'macosx_10_{macos_ver}_x86_64 ' ,
13
13
'manylinux1_x86_64' ,
14
14
'win_amd64' ,
15
15
]
16
16
MIN_VER = 5
17
- MAX_VER = 7
17
+ MAX_VER = 8
18
18
BASE_URL = "https://github.com/mypyc/mypy_mypyc-wheels/releases/download"
19
- URL = "{base}/v{version}/mypy-{version}-cp3{pyver}-cp3{pyver}m -{platform}.whl"
19
+ URL = "{base}/v{version}/mypy-{version}-cp3{pyver}-cp3{pyver}{abi_tag} -{platform}.whl"
20
20
21
21
def download (url ):
22
22
print ('Downloading' , url )
@@ -29,11 +29,15 @@ def download(url):
29
29
def download_files (version ):
30
30
for pyver in range (MIN_VER , MAX_VER + 1 ):
31
31
for platform in PLATFORMS :
32
+ abi_tag = "" if pyver >= 8 else "m"
33
+ macos_ver = 9 if pyver >= 8 else 6
32
34
url = URL .format (
33
35
base = BASE_URL ,
34
36
version = version ,
35
37
pyver = pyver ,
36
- platform = platform )
38
+ abi_tag = abi_tag ,
39
+ platform = platform .format (macos_ver = macos_ver )
40
+ )
37
41
# argh, there is an inconsistency here and I don't know why
38
42
if 'win_' in platform :
39
43
parts = url .rsplit ('/' , 1 )
Original file line number Diff line number Diff line change @@ -124,7 +124,12 @@ def make_sdist(self) -> None:
124
124
125
125
def download_compiled_wheels (self ) -> None :
126
126
self .heading ('Downloading wheels compiled with mypyc' )
127
- self .run_in_virtualenv ('misc/download-mypyc-wheels.py %s' % self .version )
127
+ # N.B: We run the version in the current checkout instead of
128
+ # the one in the version we are releasing, in case we needed
129
+ # to fix the script.
130
+ self .run_in_virtualenv (
131
+ '%s %s' %
132
+ (os .path .abspath ('misc/download-mypyc-wheels.py' ), self .version ))
128
133
129
134
def upload_wheels (self ) -> None :
130
135
self .heading ('Uploading wheels' )
You can’t perform that action at this time.
0 commit comments