-
Notifications
You must be signed in to change notification settings - Fork 624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python.org's -intel64 suffix confuses uv pip #7684
Comments
The Similarly, |
yeah but I also didn’t want to. That part is 100% correct. I wanted it to look at .venv but uv pip decided that it doesn’t match Python3.12-intel64 which it totally does. My working theory for this whole ticket is that it gets confused by the suffix.
I’m super sorry for copy-pasta — I didn’t notice it and will edit it accordingly. The effective UV_PYTHON is |
Are you activating your virtual environment? When you provide a Python executable name i.e. |
Ah I can only speculate since I’m on a full train, but yes I do activate my virtualenvs and I don’t think they have an But yeah that was my whole suspicion and hope that since the -intel64 suffix is official and since I don’t think I can achieve the same thing with uv tooling (?), there might be the possibility to give it special treatment? Eg ignoring it when checking a venv until you add some kind of arch intelligence. Or do you have any other suggestions how to achieve what I need? This can’t be such an exotic need? |
I think you want to avoid setting Regardless, we should add first-class support for this in discovery. I just don't know when we'll get to it. Related python/cpython#88175 |
Fair enough. I'd prefer to keep doing it because it works flawlessly with But I can wait and live with workarounds for now – thanks! :) I also wanted to make sure that it doesn't break for sync/lock at some point. ;) |
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:
Problems arise with
uv pip
. For one, if I'm in one of those projects and runuv pip list
, I get what I suspect is the global output:Of course,
env UV_PYTHON=python3.12 uv pip list
orenv UV_PYTHON=.venv uv pip list
workTrying to install something (because, for example I want some debugger that isn't part of the project) fails rather opaquely:
Since
python3.12-intel64
is an official Python thing – would it be thinkable to add special support to uv for it?The text was updated successfully, but these errors were encountered: