-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
mesa PR #10482 breaks packages requiring mesa and python@2 #11537
Comments
I guess this might get fixed by #4595 |
It sounds like this specifically affects packages which depend on
In this case, does it specifically require It's also possible that this particular problem will slowly become less prevalent as Python 2 support is phased out (e.g. perhaps See also: #11468 |
Yes, it specifically affects things that need py2 and mesa or mesa via gl. Considering submitting a mesa-legacy package for the older versions which use the old build system as a work around. |
The issue isn't even mesa specific, that's just an instance of the spack bug of not being able to separate build and run deps during concretization. Basically this case:
This is valid since py3 is a build only dep for B but currently both py2 and py3 ending up in the same dag, even though they don't need to be loaded at the same time, seems to generate an artificial conflict. |
The workaround for this has so far been to do a two stage install, i.e. first explicitly spack install mesa and then spack install the application. The second install seems to work since spack is only considering the runtime deps of an already installed package instead of also it's build deps. |
I tried @chuckatkins' workaround and it seems as if spack is still trying to concretize build-only dependencies:
|
@codeandkey the workaround seems to no longer work. I've just posted an issue documenting the bug that happens, #11542, which didn't used to be a problem. |
Similar issue reported in: #11541 |
@baberlevi #11595 just restored the older autotools build while keeping the package restructuring. Can you check that it resolves the issue for you please? |
@baberlevi #11595 should resolve this issue so I'm closing this. Feel free to reopen if you can reproduce this with #11595. |
When #10482 was introduced, this seems to have broken the installation of any package which depends on a python2 version.
A few examples:
catalyst
grass
@codeandkey is working on a PR for eman2 that requires python2, and we can't quite figure out how to work around this.
It seems like python3 should only be a transient build dependency, but the spec won't allow both python2 as a run dependency and python3 as a build dependency to concretize together.
The text was updated successfully, but these errors were encountered: