Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions easybuild/easyblocks/generic/cargopythonbundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,15 @@ def extra_options(extra_vars=None):
"""Define extra easyconfig parameters specific to Cargo"""
extra_vars = PythonBundle.extra_options(extra_vars)
extra_vars = Cargo.extra_options(extra_vars) # not all extra options here will used here
extra_vars['default_easyblock'][0] = 'CargoPythonPackage'

return extra_vars

def __init__(self, *args, **kwargs):
"""Constructor for CargoPythonBundle easyblock."""
self.check_for_sources = False # make Bundle allow sources (as crates are treated as sources)
super().__init__(*args, **kwargs)
self.cfg['exts_defaultclass'] = 'CargoPythonPackage'

# 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
Expand Down
5 changes: 5 additions & 0 deletions easybuild/easyblocks/generic/cargopythonpackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,8 @@ def extra_options(extra_vars=None):
def extract_step(self):
"""Specifically use the overloaded variant from Cargo as is populates vendored sources with checksums."""
return Cargo.extract_step(self)

def configure_step(self):
"""Run configure for Cargo and PythonPackage"""
Cargo.configure_step(self)
PythonPackage.configure_step(self)