pixi add option that takes in input a Python module name instead of conda package name #958
Replies: 7 comments
-
Interesting idea, we are working on improving conda-python mapping thus this data might be available soon. Not sure if this would fit into |
Beta Was this translation helpful? Give feedback.
-
Probably a bit OT, but just to note it somewhere: without going too much in the future with standards that are not even out in alpha, something else quite useful could be a CMake package --> conda package resolver (fyi @AleTarsi). |
Beta Was this translation helpful? Give feedback.
-
Ping @wolfv @baszalmstra @nichmor. Do you think this would be easy to add to the |
Beta Was this translation helpful? Give feedback.
-
Again, a bit OT, but just to past in public a comment in a private chat:
|
Beta Was this translation helpful? Give feedback.
-
The CPS feature would be an awesome addition. If that becomes a good standard we would be open to add this as a feature. The python mapping does not include the python module name (miss understanding on my part) so this might require an extra mapping step we're currently not working on. Is there already a opensource mapping for this that anyone knows of? |
Beta Was this translation helpful? Give feedback.
-
I am not an expert of that part of conda-forge, but unless I am missing something it seems that the existing mapping used by grayskull contains both the pypi package name and python module import name, see: |
Beta Was this translation helpful? Give feedback.
-
marimo has been working on such functionality (see https://twitter.com/marimo_io/status/1774168957739827442), but at the moment I guess they are not handling the case in which the python module is not called as the conda package marimo-team/marimo#1071 . |
Beta Was this translation helpful? Give feedback.
-
Problem description
A common workflow I am experiencing working with pixi is:
pixi add <condapkgname>
, where<condapkgname>
is the conda-forge package that provides the module not found (in case of glfw, it is pyglfw).It would be cool (but I do not know how feasible) to have a
pixi add-pymod
orpixi add --pymod
command that:pixi add
the corresponding conda-forge package name.Probably it is not a feature that can be implemented right away, but I wanted to track this idea somewhere.
Even more futuristic, if cps gets actually adopted by the C++ community, it would be cool to do something similar in C++ with cps package names.
Beta Was this translation helpful? Give feedback.
All reactions