-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Make optional dependencies available via conda-forge #244
Comments
I am not sure how we can map pip's optional dependencies to conda until conda/ceps#55 is accepted, without introducing |
I recently noticed that |
I merged the |
Added By the way deltalake was added around 11 months ago - my original issue is from 16 months ago 😄 |
If I understand run constraints correctly, they can be optional - that's the whole point? That they are not requirements but constraints in case the optional requirement is fulfilled? @0xbe7a maybe I misunderstand, but to me that's what the docs say pretty explicitly. See: https://docs.conda.io/projects/conda-build/en/latest/resources/define-metadata.html#run-constrained E.g.
and
There's no way to specify the optionalities - but at least one can ensure that if an optional dependency is installed, it must be of a compatible version. Also the run constraints then serve as a self-documenting set of optional dependencies. |
However, the |
True, but no package truly always use all the functionality that give rise to a particular constraint. I guess it depends how commonly used the optional dependency is and how tightly you are constrained/constraining. It's always a tradeoff. The best way to ensure solve issues would be to ensure optional dependencies are as little constrained as possible. |
I see your point, and I also think that this should be a tradeoff based on the popularity of the dependency. I am hesitant here, as there is nothing the end-user can do to ignore these potentially "bogus" constraints and create the environment regardless of any constraints. Feel free to open a PR for any potential constraints. I think it's much better to go through this on a case-by-case basis rather than in general. |
Comment:
I noticed that some optional polars dependencies aren't available through conda-forge. It would be nice if all optional dependencies could be installed via conda - so that one doesn't need pip.
Missing (to the best of my knowledge):
Also, it would be good to add the version constraints from https://github.com/pola-rs/polars/blob/master/py-polars/pyproject.toml#L42-L59 as optional run-constraints to the polars conda-forge recipe
transferred from pola-rs/polars#7585
The text was updated successfully, but these errors were encountered: