1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-06-30 09:31:18 +08:00

rewrite deploy with macos

This commit is contained in:
Linlang
2024-12-19 19:24:11 +08:00
parent ed360a58d9
commit ef289faf30

View File

@@ -136,6 +136,8 @@ jobs:
replaced = f'{sys_ver_info}_0_{plat_info}'
for whl_file in Path('./dist').glob('*.whl'):
if 'universal2' in whl_file.stem:
parts = whl_file.stem.split('_')
be_replaced = '_'.join(parts[1:])
new_name = whl_file.name.replace(be_replaced, replaced)
new_whl_file = whl_file.with_name(new_name)
whl_file.rename(new_whl_file)