Skip to content

Commit

Permalink
avoid sanity check on the software itself for CargoPythonBundle easyb…
Browse files Browse the repository at this point in the history
…lock
  • Loading branch information
Samuel Moors committed May 24, 2024
1 parent 743662d commit 67bb990
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions easybuild/easyblocks/generic/cargopythonbundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ def __init__(self, *args, **kwargs):
self.check_for_sources = False # make Bundle allow sources (as crates are treated as sources)
super(CargoPythonBundle, self).__init__(*args, **kwargs)

# Cargo inherits from ExtensionEasyBlock, thus EB treats the software itself as an extension
# Setting modulename to False to ensure that sanity checks are performed on the extensions only
self.options = {'modulename': False}

def extract_step(self):
"""Specifically use the overloaded variant from Cargo as is populates vendored sources with checksums."""
return Cargo.extract_step(self)

# def sanity_check_step(self, *args, **kwargs):
# self.cfg['sources'] = None
# super(CargoPythonBundle, self).sanity_check_step(*args, **kwargs)

0 comments on commit 67bb990

Please sign in to comment.