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

Push to Conda as well as PyPi #15

Open
jacobbieker opened this issue Nov 8, 2021 · 3 comments
Open

Push to Conda as well as PyPi #15

jacobbieker opened this issue Nov 8, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@jacobbieker
Copy link
Member

Detailed Description

Conda is used by a lot of scientific software and is the recommended way of installing a lot of software that we work with/use. It could be nice to also be able to install the nowcasting packages through conda-forge

Context

Conda helps make sure python environments all work together, and is a common way of installing packages, etc for ML and scientific software, so making our packages available through there as well could be nice.

Possible Implementation

A GH Action like for PyPi publishing. Docs for contributing to conda-forge are here: https://conda-forge.org/docs/maintainer/adding_pkgs.html

@jacobbieker jacobbieker added the enhancement New feature or request label Nov 8, 2021
@jacobbieker jacobbieker self-assigned this Nov 8, 2021
@jacobbieker jacobbieker moved this to Todo in Nowcasting Nov 8, 2021
@JackKelly
Copy link
Member

Great idea!

Also, we should check how best to install each OCF Python package using conda: at the moment we ask users to conda env create -f environment.yml and then install the OCF package into the conda env by running pip install -e . which works but forces pip to install a bunch of redundant packages (because they've already been installed by conda). I'm assuming there must be a way to install each OCF Python package using conda?

@jacobbieker
Copy link
Member Author

Yeah, that's what this should allow. So ideally, we could then just do something like conda create -n ocf python=3.9 pytorch satflow -c pytorch -c conda-forge -c nvidia and it would get everything correct without us needing to use pip at all. Currently, we can't use conda because its not in conda-forge or any conda channel right now, so we'd have to do a little bit of work to get it going, but I think it would be worth it as conda has a lot of nice features. Just a bit more work to setup than PyPi, which is why I've not tried doing it yet

@jacobbieker
Copy link
Member Author

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
No open projects
Status: Todo
Development

No branches or pull requests

2 participants