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

environment.yml: handle variant and newer condas better #1334

Merged
merged 9 commits into from
Apr 24, 2024

Conversation

pgunn
Copy link
Member

@pgunn pgunn commented Apr 23, 2024

Be smarter about alternate builds of conda, set channel-priority to handle if user/distro has set it to something else.

This is an attempt to improve on the install issues seen with #1332

Note that the channel_priority: true may seem wrong, but it's a ternary value, with false meaning disabled, true meaning flexible, and strict (a new value) meaning strict. We don't want strict, at least as long as we need tensorflow on Windows. Flexible should do the job.

@pgunn
Copy link
Member Author

pgunn commented Apr 24, 2024

Actually channel_priority cannot be set in environment.yml; I misread some docs. Removed that bit.

@ethanbb
Copy link
Contributor

ethanbb commented Apr 24, 2024

Yes, I confirmed this works for me with Miniforge on Windows, so no need to install tensorflow separately after installing everything else from conda-forge. Also, it seems that Miniforge at least defaults to flexible channel priority, so that shouldn't be a problem (I think that's by far the most popular distribution that doesn't include defaults).

@pgunn pgunn merged commit aabb25d into dev Apr 24, 2024
3 checks passed
@pgunn pgunn deleted the dev-environment_rework branch April 24, 2024 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants