Skip to content

Commit

Permalink
update ORCA easyblock for version 6
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Moors committed Jul 26, 2024
1 parent 38cea13 commit 9bf81c2
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions easybuild/easyblocks/o/orca.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,21 @@ def install_step(self):
(['auto*', 'orca*', 'otool*'], 'bin'),
(['*.pdf'], 'share'),
]
# Version 5 extra files
if LooseVersion(self.version) >= LooseVersion('5.0.0'):
compoundmethods = (['ORCACompoundMethods'], 'bin')
files_to_copy.append(compoundmethods)
# Shared builds have additional libraries
libs_to_copy = (['liborca*'], 'lib')
if all([glob.glob(p) for p in libs_to_copy[0]]):
files_to_copy.append(libs_to_copy)

# Version 6 extra files
if LooseVersion(self.version) >= LooseVersion('6.0.0'):
files_to_copy.extend(['datasets', 'lib', (['CompoundScripts'], 'bin')])

else:
# Version 5 extra files
if LooseVersion(self.version) >= LooseVersion('5.0.0'):
compoundmethods = (['ORCACompoundMethods'], 'bin')
files_to_copy.append(compoundmethods)

# Shared builds have additional libraries
libs_to_copy = (['liborca*'], 'lib')
if all([glob.glob(p) for p in libs_to_copy[0]]):
files_to_copy.append(libs_to_copy)

self.cfg['files_to_copy'] = files_to_copy

Expand Down

0 comments on commit 9bf81c2

Please sign in to comment.