filter_compiler_path: added the possibility to narrow search path

Following a comment from Todd, the search path for the files listed in
`filter_compiler_wrappers` can now be narrowed. Anyhow, the function
implementation still makes use of `find`, the rationale being that we
have already seen packages that install artifacts in e.g. architecture
dependent folders. The possibility to have a relative search path might
be a good compromise between the previous approach and the one suggested
in the review.

Also: 'ignore_absent' and 'backup' keyword arguments can be optionally
forwarded to `filter_file`.
This commit is contained in:
alalazo
2017-08-02 15:37:52 +02:00
committed by Todd Gamblin
parent 4e48bae096
commit c62b3eef55
6 changed files with 45 additions and 15 deletions

View File

@@ -228,7 +228,8 @@ class Openmpi(AutotoolsPackage):
'mpif90-vt-wrapper-data.txt',
'mpif90-wrapper-data.txt',
'mpif77-vt-wrapper-data.txt',
'mpif77-wrapper-data.txt'
'mpif77-wrapper-data.txt',
relative_root=os.path.join('share', 'openmpi')
)
def url_for_version(self, version):