Skip to content

Commit

Permalink
Merge pull request easybuilders#3305 from Flamefire/20240412170740_ne…
Browse files Browse the repository at this point in the history
…w_pr_pythonpackage

Allow 'nosource: True' in PythonPackage extensions'
  • Loading branch information
smoors authored Apr 18, 2024
2 parents 3d5d42c + b7508df commit 9473538
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions easybuild/easyblocks/generic/pythonpackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ def compose_install_command(self, prefix, extrapath=None, installopts=None):

loc = self.cfg.get('install_src')
if not loc:
if self._should_unpack_source():
if self._should_unpack_source() or not self.src:
# specify current directory
loc = '.'
elif isinstance(self.src, string_type):
Expand Down Expand Up @@ -904,9 +904,6 @@ def install_step(self):
def run(self, *args, **kwargs):
"""Perform the actual Python package build/installation procedure"""

if not self.src:
raise EasyBuildError("No source found for Python package %s, required for installation. (src: %s)",
self.name, self.src)
# we unpack unless explicitly told otherwise
kwargs.setdefault('unpack_src', self._should_unpack_source())
super(PythonPackage, self).run(*args, **kwargs)
Expand Down

0 comments on commit 9473538

Please sign in to comment.