mirror of
https://github.com/Z3Prover/z3
synced 2025-06-20 12:53:38 +00:00
use suggestion from #7047
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
d48247c5f2
commit
78f64cda1c
1 changed files with 3 additions and 4 deletions
|
@ -313,12 +313,11 @@ if 'bdist_wheel' in sys.argv and '--plat-name' not in sys.argv:
|
||||||
osver = RELEASE_METADATA[3]
|
osver = RELEASE_METADATA[3]
|
||||||
if osver.count('.') > 1:
|
if osver.count('.') > 1:
|
||||||
osver = '.'.join(osver.split('.')[:2])
|
osver = '.'.join(osver.split('.')[:2])
|
||||||
if osver.startswith("11"):
|
osver = osver.replace('.','_')
|
||||||
osver = "11_0"
|
|
||||||
if arch == 'x64':
|
if arch == 'x64':
|
||||||
plat_name ='macosx_%s_x86_64' % osver.replace('.', '_')
|
plat_name ='macosx_%s_x86_64' % re.sub(r'\A(1[1-9])(_[\d]+)*\Z', r'\1_0', osver)
|
||||||
elif arch == 'arm64':
|
elif arch == 'arm64':
|
||||||
plat_name ='macosx_%s_arm64' % osver.replace('.', '_')
|
plat_name ='macosx_%s_arm64' % osver
|
||||||
else:
|
else:
|
||||||
raise Exception(f"idk how os {distos} {osver} works. what goes here?")
|
raise Exception(f"idk how os {distos} {osver} works. what goes here?")
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue