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 99
1010
1111PLATFORMS = [
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 ' ,
1313 'manylinux1_x86_64' ,
1414 'win_amd64' ,
1515]
1616MIN_VER = 5
17- MAX_VER = 7
17+ MAX_VER = 8
1818BASE_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"
2020
2121def download (url ):
2222 print ('Downloading' , url )
@@ -29,11 +29,15 @@ def download(url):
2929def download_files (version ):
3030 for pyver in range (MIN_VER , MAX_VER + 1 ):
3131 for platform in PLATFORMS :
32+ abi_tag = "" if pyver >= 8 else "m"
33+ macos_ver = 9 if pyver >= 8 else 6
3234 url = URL .format (
3335 base = BASE_URL ,
3436 version = version ,
3537 pyver = pyver ,
36- platform = platform )
38+ abi_tag = abi_tag ,
39+ platform = platform .format (macos_ver = macos_ver )
40+ )
3741 # argh, there is an inconsistency here and I don't know why
3842 if 'win_' in platform :
3943 parts = url .rsplit ('/' , 1 )
Original file line number Diff line number Diff line change @@ -124,7 +124,12 @@ def make_sdist(self) -> None:
124124
125125 def download_compiled_wheels (self ) -> None :
126126 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 ))
128133
129134 def upload_wheels (self ) -> None :
130135 self .heading ('Uploading wheels' )
You can’t perform that action at this time.
0 commit comments