Skip to content

Is Spack able to include a package with mainly script files and a particular workflow for running? #20521

Answered by becker33
disheng222 asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you can put z-checker into Spack.

The package.py file in Spack can be specialized to particular build systems, but the basic Package type is always an option. If your package inherits from Package, you can simply define an install method with the following signature.

def install(self, spec, prefix):

that method will install the package into the prefix, parameterized by spec.

For example, if there were one variant bar on package foo, you may have an install method that looks something like

def install(self, spec, prefix):
    installer = which('./foo-installer.sh')
    args = ['--prefix=%s' % prefix]
    if spec.satisfies('+bar'):
        args.append('--enable-foo')
    installer(*ar…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by becker33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants