summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2022-12-13 12:21:44 +0100
committerGitHub <noreply@github.com>2022-12-13 12:21:44 +0100
commitf9cfc2f57e2d500cba7301c419dfbf5360b48837 (patch)
tree15cab3f6b28ca09509caeaa7bab167f35b185d0a /lib
parentf4fb20e27e50734c4dd0ac1f493eadd07fef5d8f (diff)
downloadspack-f9cfc2f57e2d500cba7301c419dfbf5360b48837.tar.gz
spack-f9cfc2f57e2d500cba7301c419dfbf5360b48837.tar.bz2
spack-f9cfc2f57e2d500cba7301c419dfbf5360b48837.tar.xz
spack-f9cfc2f57e2d500cba7301c419dfbf5360b48837.zip
scons: fix signature for `install_args` (#34481)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/build_systems/scons.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/spack/spack/build_systems/scons.py b/lib/spack/spack/build_systems/scons.py
index 2b1c36316e..d81ff80220 100644
--- a/lib/spack/spack/build_systems/scons.py
+++ b/lib/spack/spack/build_systems/scons.py
@@ -46,10 +46,10 @@ class SConsBuilder(BaseBuilder):
phases = ("build", "install")
#: Names associated with package methods in the old build-system format
- legacy_methods = ("install_args", "build_test")
+ legacy_methods = ("build_test",)
#: Same as legacy_methods, but the signature is different
- legacy_long_methods = ("build_args",)
+ legacy_long_methods = ("build_args", "install_args")
#: Names associated with package attributes in the old build-system format
legacy_attributes = ("build_time_test_callbacks",)
@@ -66,13 +66,13 @@ class SConsBuilder(BaseBuilder):
args = self.build_args(spec, prefix)
inspect.getmodule(self.pkg).scons(*args)
- def install_args(self):
+ def install_args(self, spec, prefix):
"""Arguments to pass to install."""
return []
def install(self, pkg, spec, prefix):
"""Install the package."""
- args = self.install_args()
+ args = self.install_args(spec, prefix)
inspect.getmodule(self.pkg).scons("install", *args)