install/install_tree: glob support (#18376)
* install/install_tree: glob support * Add unit tests * Update existing packages * Raise error if glob finds no files, document function raises
This commit is contained in:
@@ -3,9 +3,6 @@
|
||||
#
|
||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||
|
||||
from spack import *
|
||||
import glob
|
||||
|
||||
|
||||
class Bcftools(AutotoolsPackage):
|
||||
"""BCFtools is a set of utilities that manipulate variant calls in the
|
||||
@@ -99,8 +96,7 @@ def install(self, spec, prefix):
|
||||
|
||||
if spec.satisfies('@1.2'):
|
||||
mkdirp(self.prefix.libexec.bcftools)
|
||||
for files in glob.glob('plugins/*.so'):
|
||||
install(files, self.prefix.libexec.bcftools)
|
||||
install('plugins/*.so', self.prefix.libexec.bcftools)
|
||||
|
||||
@when('@1.2')
|
||||
def setup_run_environment(self, env):
|
||||
|
||||
Reference in New Issue
Block a user