astral-sh / uv

An extremely fast Python package installer and resolver, written in Rust.
https://astral.sh/
Apache License 2.0
11.74k stars 321 forks source link

fix platform_machine for macos arm #3267

Closed Czaki closed 2 weeks ago

Czaki commented 2 weeks ago

Summary

based on PEP 508 the platform_machine should be same as platform.machine() output: https://peps.python.org/pep-0508/#environment-markers

From my macOS M2

In [1]: import platform

In [2]: platform.machine()
Out[2]: 'arm64'

I napari we also use arm64 in requirements and it works as expected: https://github.com/napari/napari/blob/9fcf63e69ac61b5dff0259c8618f828cc5169a9c/pyproject.toml#L120

Test Plan