Skip to content
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

[Feature Request] OS Specific Dependencies #134

Open
alanhdu opened this issue Jan 21, 2022 · 3 comments
Open

[Feature Request] OS Specific Dependencies #134

alanhdu opened this issue Jan 21, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@alanhdu
Copy link
Contributor

alanhdu commented Jan 21, 2022

When specifying my environment.yml file, I would like some way of specifying dependencies that only exist on a particular operating system (e.g. I might want to pin a particular version of pywine32 or pyobjc-core).

From browsing the docs, it doesn't look like there's a first-class way of doing this with conda-lock (although maybe there is and this is just a request for better documentation).

It looks like there's a feature request to solve this in upstream conda (xref xref conda/conda#8089) by allowing # [linux] or # [osx] selectors that hasn't been implemented, but maybe there's a way for conda-lock to some kind of partial support (even if it's not the full selector) without solving the full issue?

@mariusvniekerk mariusvniekerk added the enhancement New feature or request label Mar 2, 2022
@stepanhruda
Copy link

Bump to this - especially since 1.0 switched to a poetry resolver and started ignoring markers like platform_system in dependencies.pip, there is no way to define a multi-platform environment unless all packages exist on all platforms?

Looks like selector support is even implemented in environment file parsing, but explicitly disabled. Was there a problem with setting platform on Dependency objects when trying to resolve?

@stepanhruda
Copy link

I might be interested in adding in selector support, but I wonder if there are any issues I should be aware of - to save me from spending x hours and discovering them on my own

@jason-ford-silicontx
Copy link

Bump; I'm using conda-lock in conjunction with a pyproject.toml, and support for platform specific dependencies would be useful within the [tool.conda-lock.dependencies] section. I would be happy to make a PR to enable such a change using dictionary syntax equivalent to poetry dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants