Description
So this might sound a bit special, but I suspect there's more then the one of me.
Context is that I have an ARM-based Mac and I need to develop certain packages and applications under Intel emulation.
This is fairly easy with the official python.org builds that offer a python3.12-intel64
which is always Intel, so creating a virtualenv solves all my problems.
Therefore, when using project mode, I use the following in Direnv:
export UV_PYTHON=python3.12-intel64
uv sync
Problems arise with uv pip
. For one, if I'm in one of those projects and run uv pip list
, I get what I suspect is the global output:
❯ uv pip list
Package Version
------- -------
pip 24.2
Of course, env UV_PYTHON=python3.12 uv pip list
or env UV_PYTHON=.venv uv pip list
work
Trying to install something (because, for example I want some debugger that isn't part of the project) fails rather opaquely:
❯ uv pip install ipdb
error: No virtual environment found for executable name `python3.12-intel64`; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
Since python3.12-intel64
is an official Python thing – would it be thinkable to add special support to uv for it?
❯ uv --version
uv 0.4.16 (e81ed8ec5 2024-09-24)