From 89976af732a3055dbc6b2bfe3fae057e58e1293f Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Tue, 8 Nov 2022 16:03:15 +0100 Subject: scons: fix Scons builder after multi build-system refactoring (#33753) --- lib/spack/spack/build_systems/scons.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'lib') diff --git a/lib/spack/spack/build_systems/scons.py b/lib/spack/spack/build_systems/scons.py index f1ae955917..2b1c36316e 100644 --- a/lib/spack/spack/build_systems/scons.py +++ b/lib/spack/spack/build_systems/scons.py @@ -21,8 +21,6 @@ class SConsPackage(spack.package_base.PackageBase): #: build-system class we are using build_system_class = "SConsPackage" - #: Callback names for build-time test - build_time_test_callbacks = ["build_test"] #: Legacy buildsystem attribute used to deserialize and install old specs legacy_buildsystem = "scons" @@ -48,18 +46,24 @@ class SConsBuilder(BaseBuilder): phases = ("build", "install") #: Names associated with package methods in the old build-system format - legacy_methods = ("build_args", "install_args", "build_test") + legacy_methods = ("install_args", "build_test") + + #: Same as legacy_methods, but the signature is different + legacy_long_methods = ("build_args",) #: Names associated with package attributes in the old build-system format - legacy_attributes = () + legacy_attributes = ("build_time_test_callbacks",) + + #: Callback names for build-time test + build_time_test_callbacks = ["build_test"] - def build_args(self): + def build_args(self, spec, prefix): """Arguments to pass to build.""" return [] def build(self, pkg, spec, prefix): """Build the package.""" - args = self.build_args() + args = self.build_args(spec, prefix) inspect.getmodule(self.pkg).scons(*args) def install_args(self): -- cgit v1.2.3-70-g09d2