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

Distribute libraries (conda, maybe apt?) #274

Open
RobertPincus opened this issue Apr 12, 2024 · 3 comments
Open

Distribute libraries (conda, maybe apt?) #274

RobertPincus opened this issue Apr 12, 2024 · 3 comments

Comments

@RobertPincus
Copy link
Member

We would like to distribute the RTE and RRTMGP libraries via conda and possibly other channels (e.g. apt-get). Libraries would be updated at each release.

For conda we will need to write a recipe and get it adopted as a feedstock. I think conda uses CMake, which we don't currently support.

We can build separate libraries for the kernels and the Fortran frontend, or libraries that combine both. The Python frontend needs just the kernels - is that what we'd start with?

@gnikit
Copy link

gnikit commented Jun 3, 2024

I believe we can deploy the feedstock to Linux/OSX/Windows without switching the build system to CMake. That being said, if the intention is to natively build for non-Unix platforms e.g. Windows then it would be safer to use a cross-platform build system that's not available only on Unix-style platforms.

Since the library is quite small and with no external dependencies, swapping the build system is not that difficult.

As for what should be inside the conda-forge feedstock, my suggestion would be to have the full set of libs and probably the Python bindings too. We can make incremental progress on this, by first adding the libs and then adding the rest of the components to the feedstock.

@RobertPincus
Copy link
Member Author

@gnikit thanks for this help too. The Fortran libraries and Python codes will likely be distributed via conda and other channels separately, since chances can and will happen to the two repos independently.

The Windows makefiles produce static libraries with .a suffixes? .

@gnikit
Copy link

gnikit commented Jun 3, 2024

@gnikit thanks for this help too. The Fortran libraries and Python codes will likely be distributed via conda and other channels separately, since chances can and will happen to the two repos independently.

That's good news! It simplifies the conda recipe a lot.

The Windows makefiles produce static libraries with .a suffixes? .

Yes, but I suspect to be a true Windows library it should be a .lib or a .dll.

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

No branches or pull requests

2 participants