fix a few imports

This commit is contained in:
Harmen Stoppels 2025-05-14 15:27:13 +02:00
parent e09325fe9f
commit 93e0d99553
13 changed files with 23 additions and 9 deletions

View File

@ -3,17 +3,19 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT) # SPDX-License-Identifier: (Apache-2.0 OR MIT)
import os import os
import spack.pkg.builder_test.callbacks
from spack.package import * from spack.package import *
from ..callbacks.package import Callbacks
from ..callbacks.package import GenericBuilder as CallbacksGenericBuilder
class Inheritance(spack.pkg.builder_test.callbacks.Callbacks):
class Inheritance(Callbacks):
"""Package used to verify that inheritance among packages work as expected""" """Package used to verify that inheritance among packages work as expected"""
pass pass
class GenericBuilder(spack.pkg.builder_test.callbacks.GenericBuilder): class GenericBuilder(CallbacksGenericBuilder):
def install(self, pkg, spec, prefix): def install(self, pkg, spec, prefix):
super().install(pkg, spec, prefix) super().install(pkg, spec, prefix)
os.environ["INHERITANCE_INSTALL_CALLED"] = "1" os.environ["INHERITANCE_INSTALL_CALLED"] = "1"

View File

@ -1,11 +1,12 @@
# Copyright Spack Project Developers. See COPYRIGHT file for details. # Copyright Spack Project Developers. See COPYRIGHT file for details.
# #
# SPDX-License-Identifier: (Apache-2.0 OR MIT) # SPDX-License-Identifier: (Apache-2.0 OR MIT)
import spack.pkg.builder_test.old_style_autotools
from spack.package import * from spack.package import *
from ..old_style_autotools.package import OldStyleAutotools
class OldStyleDerived(spack.pkg.builder_test.old_style_autotools.OldStyleAutotools):
class OldStyleDerived(OldStyleAutotools):
"""Package used to verify that old-style packages work correctly when executing the """Package used to verify that old-style packages work correctly when executing the
installation procedure. installation procedure.
""" """

View File

@ -3,6 +3,7 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT) # SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import * # noqa: F401 from spack.package import * # noqa: F401
from ..cmake_client.package import CmakeClient from ..cmake_client.package import CmakeClient

View File

@ -2,6 +2,7 @@
# #
# SPDX-License-Identifier: (Apache-2.0 OR MIT) # SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import * from spack.package import *
from ..libtool_deletion.package import AutotoolsBuilder as BuilderBase from ..libtool_deletion.package import AutotoolsBuilder as BuilderBase
from ..libtool_deletion.package import LibtoolDeletion from ..libtool_deletion.package import LibtoolDeletion

View File

@ -2,6 +2,7 @@
# #
# SPDX-License-Identifier: (Apache-2.0 OR MIT) # SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import * from spack.package import *
from ..maintainers_1.package import Maintainers1 from ..maintainers_1.package import Maintainers1

View File

@ -4,6 +4,7 @@
import spack.platforms import spack.platforms
from spack.package import * from spack.package import *
from ..multimethod_base.package import MultimethodBase from ..multimethod_base.package import MultimethodBase

View File

@ -2,9 +2,10 @@
# #
# SPDX-License-Identifier: (Apache-2.0 OR MIT) # SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
from ..multimethod_diamond_parent.package import MultimethodDiamondParent from ..multimethod_diamond_parent.package import MultimethodDiamondParent
from ..multimethod_inheritor.package import MultimethodInheritor from ..multimethod_inheritor.package import MultimethodInheritor
from spack.package import *
class MultimethodDiamond(MultimethodInheritor, MultimethodDiamondParent): class MultimethodDiamond(MultimethodInheritor, MultimethodDiamondParent):

View File

@ -3,6 +3,7 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT) # SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import * from spack.package import *
from ..multimethod_base.package import MultimethodBase from ..multimethod_base.package import MultimethodBase

View File

@ -3,6 +3,7 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT) # SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import * from spack.package import *
from ..multimethod.package import Multimethod from ..multimethod.package import Multimethod

View File

@ -2,9 +2,10 @@
# #
# SPDX-License-Identifier: (Apache-2.0 OR MIT) # SPDX-License-Identifier: (Apache-2.0 OR MIT)
import spack.pkg.builtin_mock.simple_inheritance as si
from spack.package import * from spack.package import *
from ..simple_inheritance import package as si
class MultimoduleInheritance(si.BaseWithDirectives): class MultimoduleInheritance(si.BaseWithDirectives):
"""Simple package which inherits a method and several directives""" """Simple package which inherits a method and several directives"""

View File

@ -3,6 +3,7 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT) # SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import * # noqa: F401 from spack.package import * # noqa: F401
from ..patch.package import Patch from ..patch.package import Patch

View File

@ -3,12 +3,13 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT) # SPDX-License-Identifier: (Apache-2.0 OR MIT)
import spack.builder import spack.builder
import spack.pkg.builtin_mock.python as mp
from spack.build_systems._checks import BuilderWithDefaults, execute_install_time_tests from spack.build_systems._checks import BuilderWithDefaults, execute_install_time_tests
from spack.package import * from spack.package import *
from ..python.package import Python
class PyTestCallback(mp.Python):
class PyTestCallback(Python):
"""A package for testing stand-alone test methods as a callback.""" """A package for testing stand-alone test methods as a callback."""
homepage = "http://www.example.com" homepage = "http://www.example.com"

View File

@ -2,6 +2,7 @@
# #
# SPDX-License-Identifier: (Apache-2.0 OR MIT) # SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import * from spack.package import *
from ..variant_values.package import VariantValues from ..variant_values.package import VariantValues