perl: remove a few imports

This commit is contained in:
Harmen Stoppels 2025-05-20 12:33:53 +02:00 committed by Harmen Stoppels
parent bfc52d6f50
commit 6866270bcf

View File

@ -10,8 +10,6 @@
from spack_repo.builtin.build_systems.generic import Package
from llnl.util.filesystem import windows_sfn
from llnl.util.lang import match_predicate
from llnl.util.symlink import symlink
from spack.operating_systems.mac_os import macos_version
from spack.package import *
@ -580,23 +578,6 @@ def make_briefly_writable(self, path):
yield
os.chmod(path, perm)
# ========================================================================
# Handle specifics of activating and deactivating perl modules.
# ========================================================================
def perl_ignore(self, ext_pkg, args):
"""Add some ignore files to activate/deactivate args."""
ignore_arg = args.get("ignore", lambda f: False)
# Many perl packages describe themselves in a perllocal.pod file,
# so the files conflict when multiple packages are activated.
# We could merge the perllocal.pod files in activated packages,
# but this is unnecessary for correct operation of perl.
# For simplicity, we simply ignore all perllocal.pod files:
patterns = [r"perllocal\.pod$"]
return match_predicate(ignore_arg, patterns)
@property
def command(self):
"""Returns the Perl command, which may vary depending on the version