perl: remove a few imports
This commit is contained in:
parent
bfc52d6f50
commit
6866270bcf
@ -10,8 +10,6 @@
|
|||||||
from spack_repo.builtin.build_systems.generic import Package
|
from spack_repo.builtin.build_systems.generic import Package
|
||||||
|
|
||||||
from llnl.util.filesystem import windows_sfn
|
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.operating_systems.mac_os import macos_version
|
||||||
from spack.package import *
|
from spack.package import *
|
||||||
@ -580,23 +578,6 @@ def make_briefly_writable(self, path):
|
|||||||
yield
|
yield
|
||||||
os.chmod(path, perm)
|
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
|
@property
|
||||||
def command(self):
|
def command(self):
|
||||||
"""Returns the Perl command, which may vary depending on the version
|
"""Returns the Perl command, which may vary depending on the version
|
||||||
|
Loading…
Reference in New Issue
Block a user