uv icon indicating copy to clipboard operation
uv copied to clipboard

Fill Python requests with platform information during automatic fetches

Open zanieb opened this issue 1 year ago • 3 comments

Closes https://github.com/astral-sh/uv/issues/4800

We do this during install — it's an important step to ensure the request has the platform information in it.

zanieb avatar Jul 04 '24 15:07 zanieb

@konstin could you check this resolves the issue on Linux please?

zanieb avatar Jul 04 '24 15:07 zanieb

The need for a lightweight testing story for Python toolchain commands grows...

zanieb avatar Jul 04 '24 15:07 zanieb

Still failing for me:

$ rm -rf ~/.local/share/uv/ ~/.cache/uv/ && cargo run -q -- tool install --preview -p 3.12 --force black --python-preference only-managed
error: Failed to query Python interpreter at `/home/konsti/.local/share/uv/python/cpython-3.12.3-macos-aarch64-none/install/bin/python3`
  Caused by: Exec format error (os error 8)

konstin avatar Jul 05 '24 08:07 konstin

@konstin that's because I didn't change it in the other place Charlie pointed out

zanieb avatar Jul 05 '24 15:07 zanieb

I'm gonna add and merge for now -- we can revisit if we wanna do something better.

charliermarsh avatar Jul 05 '24 21:07 charliermarsh