-
Notifications
You must be signed in to change notification settings - Fork 232
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
feat: pixi exec --list
#3303
Comments
I looked into this a bit further. It seems like |
Probably better to share (or copy) functionality with |
thanks for the pointer! I think I basically need to figure out how to go from Lines 181 to 189 in 31ce561
Vec<PackageToOutput> : Lines 373 to 379 in 31ce561
Lines 160 to 170 in 31ce561
specs: IndexMap<rattler_conda_types::PackageName, PixiSpec> .
Any pointers on how we can acquire/create these |
Actually, after looking with a fresh pair of eyes, I think we're accessing those |
Problem description
Pasting from discussion on discord with @Hofer-Julian. I have a branch at lucascolley@fe54efb which has started looking at this—currently need to figure out how to pass the installed environment to
list::execute
.Suppose a user reports a bug with
scikit-learn
versionx.y.z
, and I fail to reproduce withpixi exec -s scikit-learn=x.y.z ...
. We might suspect that the bug depends on certain versions ofnumpy
orscipy
, so I'd like to quickly share my versions and ask the user for theirs.pixi exec --list
wouldn't make a huge difference when it is just one or two dependencies we are interested in like this, but it becomes a lot faster the more dependencies you are interested in. And useful when we are not sure which dependencies might make a difference. Some packages have included things likeimport sklearn; sklearn.show_versions()
to make this easier from the Python side, but this won't be available for all packages (and is still slower).pixi exec --list -s scikit-learn=x.y.z -s ipython ipython
would:pixi list
as if we had instead gone through the more involved process ofpixi init && pixi add scikit-learn=x.y.z ipython && pixi list
ipython
in the environment as usualMy main motivation is to avoid having to
pixi init
a new project every time I want to do something like this. A caveat here is that we don't support the various optional arguments topixi list
unless we add them toexec
as well, but I would be happy with just the defaultpixi list
output.Similarly,
pixi exec --list numpy -s ...
could work also.The text was updated successfully, but these errors were encountered: