bowtie2: fix python interpreter line (#22417)

Beginning with version 2.4.1, the python interpreter line changed from

"#!/usr/bin/env python" to "#!/usr/bin/env python3"

That caused the bowtie2-build and bowtie2-inspect scripts to have a
trailing '3' at the end of the interpreter line. This PR fixes that. I
also observed that older versions do not build with intel-oneapi-tbb
so added a conflicts statement for that.
This commit is contained in:
Glenn Johnson 2021-03-20 03:43:19 -05:00 committed by GitHub
parent 381da114f0
commit cbb64156cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,6 +33,7 @@ class Bowtie2(MakefilePackage):
# seems to have trouble with 6's -std=gnu++14
conflicts('%gcc@6:', when='@:2.3.1')
conflicts('^intel-oneapi-tbb', when='@:2.3.5.1')
conflicts('@:2.3.5.0', when='target=aarch64:')
conflicts('@2.4.1', when='target=aarch64:')
@ -45,7 +46,7 @@ def edit(self, spec, prefix):
files = ['bowtie2', ]
filter_file(match, substitute, *files, **kwargs)
match = '^#!/usr/bin/env python'
match = '^#!/usr/bin/env python.*'
python = spec['python'].command
substitute = "#!{python}".format(python=python)
files = ['bowtie2-build', 'bowtie2-inspect']