-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Currently, I don't believe this project would be usable in a situation where you were cross-compiling via PEP 739 information alone. The following would be needed:
- Need to install wheels that you depend on in some virtual environment
- pkgconf needs to be able to look up entry points in that virtual environment while presumably executing outside of that environment
Assuming that (1) was doable (seems like uv might be able to partially do this: astral-sh/uv#7957), I'm not sure what we need to accomplish (2). I guess importlib_metadata would need an API to allow it to inspect an environment that is not the current running environment, or trick it into doing so.
Of course, both 1 and 2 are provided by crossenv without PEP 739 even though getting crossenv to work is a bit fiddly.
I note that PEP 739 says:
Information specific to a Python environment, such as the site-packages path, is outside the scope for this file, and the PEP authors expect that a static environment description file will be introduced via a future PEP.
So probably this isn't really doable without that future PEP (which should hopefully make it so that you can find entry points in another venv).
I don't think this is a really high priority thing to work on since crossenv exists and works fine (even if it's a bit fiddly), just noting this so I don't forget it in the future.