What information do you gather for interpreters and environments?

You can get it from pyvenv.cfg, but I also don’t view that information as critical to using an environment as much as a nice-to-have (we have found giving users the stem of the directory that a virtual environment is contained in works well enough when a prompt was not specified).

Not the way I have things in my head. There’s a --list option to the Python Launcher for this sort of thing. Once again, you’re getting ahead of me. :smile: Right now I’m just focusing on the data aspect and not on the plug-in/finder/searcher/discovery aspect.

OK, it sounds like no one can think of a reason to break it out if we include CPU architecture, so I’ll just make it a single thing.

I think what you’re after I have discussed in What information is needed to choose the right dependency (file) for a platform? . I didn’t think about including the relevant platform info here to create a lock file from a set of requirements, but if we view this as a data format for exchanging interpreter/environment info then I can see it making sense to include it here.

1 Like