fix install tags (#2464)

This commit is contained in:
Awni Hannun 2025-08-04 20:01:23 -07:00 committed by GitHub
parent 828c5f1137
commit ca973d1e83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -276,10 +276,10 @@ if __name__ == "__main__":
if build_stage == 1:
install_requires += [
f'mlx-metal=={version}; platform_system == "Darwin"',
f'mlx-cuda=={version}; extra != "cpu" and platform_system == "linux"',
f'mlx-cuda=={version}; extra != "cpu" and platform_system == "Linux"',
]
extras["cpu"] = [
f'mlx-cpu=={version}; extra == "cpu" and platform_system == "linux"'
f'mlx-cpu=={version}; extra == "cpu" and platform_system == "Linux"'
]
_setup(