-
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
spack configure/build doesn't work for all package base classes #3642
Comments
For things like |
Works for me! Honestly, I'm wondering if we should just rename the |
Why not add a I'd need to think about what happens when you inherit from both AutotoolsPackage and CMakePackage and override both conditionally. It would be nice if packages like dyninst whose build systems have changed over time would work in that scenario. Then again, renaming the |
@tgamblin I'll try to have a look at |
lammps got switched to CMake in effba3c. |
Hello @alalazo, I am having the same issue: trying to define an additional phase in a simple "Package", which behaves like a configure phase when using spack configure. Did you come up with a way to do that ? Thanks, PS: |
spack configure
andspack build
are designed stop at a certain phase of the package installation process for debugging purposes. However, this only works forCMakePackage
,AutotoolsPackage
, andPythonPackage
. These 3 build systems contain separate build and install phases.This doesn't work for
MakefilePackage
even though it has a build phase:It also doesn't work for a
Package
class with manually added build phases:See #3641 for this qbank package.
Based on the commands, it looks like we are looking for the package base class in
build_systems_to_phase
, a dictionary that converts the phase to the name of the function. If the base class isn't in this dictionary, it crashes, even if the package has a build phase defined.@alalazo
The text was updated successfully, but these errors were encountered: