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

Installation with conda installs new compilers and kernel headers #1183

Open
caioolivv opened this issue Jun 5, 2024 · 6 comments
Open

Installation with conda installs new compilers and kernel headers #1183

caioolivv opened this issue Jun 5, 2024 · 6 comments

Comments

@caioolivv
Copy link

Installing pyccl with conda from conda-forge forces the installation of new compilers and kernel headers, which breaks other libraries in the environment (in specific, NumCosmo). Is this expected behavior?

(At the moment, I can still install with pip so that's not a big problem)

image

@caioolivv caioolivv changed the title Instalation with conda installs new compilers and kernel headers Installation with conda installs new compilers and kernel headers Jun 5, 2024
@erykoff
Copy link

erykoff commented Jun 5, 2024

This appears to be because the camb conda-forge feedstock defines the fortran compiler as a run requirement which is ... odd.

@caioolivv
Copy link
Author

Any way to go around this? I'm trying to install firecrown which requires pyccl through conda, so I'm not able to install it on the same environment as NumCosmo.

@erykoff
Copy link

erykoff commented Jun 5, 2024

Pinging @beckermr on this.

@beckermr
Copy link
Collaborator

beckermr commented Jun 5, 2024

Is numcosmo packaged in conda-forge?

@caioolivv
Copy link
Author

Yes, but I'm working on a different branch of numcosmo.

@beckermr
Copy link
Collaborator

beckermr commented Jun 5, 2024

Got it. Thanks for the quick response.

conda + camb is doing the right thing here.

The issue is that you have a requirement on the compilers that you didn't tell conda about. You can tell conda about it by putting the requirements on the compilers into the conda-meta/pinned file in your environment's prefix. You can make that file if it does not exist.

Then conda will respect those pins when it does operations on the env.

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

3 participants