-
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
Is there a command/phase just prior to make install
#5210
Comments
|
Setting aside for the moment there is no mention of a command
|
Not every package supports it, specifically packages that use the |
I need it to work for any package though. So, package dependent behavior won't work. What about this...can I somehow override Spack's idea of what |
"install" is a phase shared by all packages but there is not currently a way to stop when that phase is reached. Is there a reason you want everything up to (but not including) install but more than what you get when you stage the package? |
Yes. I am using Spack as a tool to query Software Quality Engineering aspects of a package. I would like to know if a package supports make targets such as
I don't wanna try greping the package.py files themselves even though there may be telltail signs in them about what I am looking for. My idea about somehow either overriding Spack's notion of That said, its not a showstopper for me. I can probably suffer the actual install. And, some of what I need to do in the way of SQE queries does in fact require me to do the install at some point. I am just trying to keep things as much decoupled as possible. |
It sounds like you actually want something that runs before class SomePackage(SomePackageSubclass):
@run_before('build')
def do_something(self):
# blahblah That'll work for any package that supports a Like @scheibelp said, note that Some observations:
It looks like one of your issues here is that |
In case it wasn't clear above, Spack's notion of |
@markcmiller86: another thing you might consider looking at is the implementation of |
Yeah, commands don't get added to the command index unless they appear in the documentation. Feel free to write a quick section on
It wouldn't be hard to hack this. Check in Immediately after: m.make = MakeExecutable('make', jobs) add: m.make.add_default_arg('-n') Of course, this means that if you need to build a stack of software with dependencies, none of the dependencies will actually build either.
This won't actually work. From my experience, if you define a
Yes, although the package comes with a configure script, it does not use Autotools. I contacted the developer about this and he confirmed. I think the reason I couldn't get it to build was that You might also be interested in the discussion in #3642. In an ideal world, packages like |
@markcmiller86 Closing this discussion as stale. Feel free to reopen if you think the topic needs some further clarification. |
I would like to know if there is a way to put a package into the state just prior to the actual install command. So, the package has been fetched, staged, patched and configured/cmake'd or whatever but it is not been installed? Is there a way to tell spack to put a package into this state?
The text was updated successfully, but these errors were encountered: