intel-parallel-studio: restrict patch to versions > 2016 (#6523)
Fixes #6522 Patch psxevars.sh and psxevars.csh only when year > 2016. pxevars.csh does not exist for versions before 2017. psxevars.sh does not appear to require this patch for versions before 2017.
This commit is contained in:
parent
bd5d6b2bfa
commit
e19aa80734
@ -435,15 +435,16 @@ def rpath_configuration(self):
|
|||||||
|
|
||||||
@run_after('install')
|
@run_after('install')
|
||||||
def fix_psxevars(self):
|
def fix_psxevars(self):
|
||||||
"""Newer versions of Intel Parallel Studio have a bug in the
|
"""Newer versions (>2016) of Intel Parallel Studio have a bug in the
|
||||||
``psxevars.sh`` script."""
|
``psxevars.sh`` script."""
|
||||||
|
|
||||||
bindir = glob.glob(join_path(
|
bindir = glob.glob(join_path(
|
||||||
self.prefix, 'parallel_studio*', 'bin'))[0]
|
self.prefix, 'parallel_studio*', 'bin'))[0]
|
||||||
|
|
||||||
filter_file('^SCRIPTPATH=.*', 'SCRIPTPATH={0}'.format(self.prefix),
|
if self.version[1] > 2016:
|
||||||
os.path.join(bindir, 'psxevars.sh'),
|
filter_file('^SCRIPTPATH=.*', 'SCRIPTPATH={0}'.format(self.prefix),
|
||||||
os.path.join(bindir, 'psxevars.csh'))
|
os.path.join(bindir, 'psxevars.sh'),
|
||||||
|
os.path.join(bindir, 'psxevars.csh'))
|
||||||
|
|
||||||
def setup_dependent_environment(self, spack_env, run_env, dependent_spec):
|
def setup_dependent_environment(self, spack_env, run_env, dependent_spec):
|
||||||
if '+mpi' in self.spec:
|
if '+mpi' in self.spec:
|
||||||
|
Loading…
Reference in New Issue
Block a user