diff options
author | John W. Parent <45471568+johnwparent@users.noreply.github.com> | 2023-03-31 21:57:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-31 21:57:55 -0400 |
commit | d79c8179fc1fc6d0803d8118ef99fb7d868e6235 (patch) | |
tree | d523d022e8679023ae1665473d73140c66d12767 /var | |
parent | 11758312032644f84a62ef830049a5e687a5b8e9 (diff) | |
download | spack-d79c8179fc1fc6d0803d8118ef99fb7d868e6235.tar.gz spack-d79c8179fc1fc6d0803d8118ef99fb7d868e6235.tar.bz2 spack-d79c8179fc1fc6d0803d8118ef99fb7d868e6235.tar.xz spack-d79c8179fc1fc6d0803d8118ef99fb7d868e6235.zip |
Perl package: change attr to method (#36580)
This fixes a bug in the Windows build of Perl.
An attribute defined in package class is inaccessible from the install
method due to builder: refactor it to be a method.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/perl/package.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/perl/package.py b/var/spack/repos/builtin/packages/perl/package.py index 16ca59508c..c054fb3ef7 100644 --- a/var/spack/repos/builtin/packages/perl/package.py +++ b/var/spack/repos/builtin/packages/perl/package.py @@ -213,7 +213,6 @@ class Perl(Package): # Perl doesn't use Autotools, it should subclass Package perm = os.stat(filename).st_mode os.chmod(filename, perm | 0o200) - @property def nmake_arguments(self): args = [] if self.spec.satisfies("%msvc"): @@ -304,7 +303,7 @@ class Perl(Package): # Perl doesn't use Autotools, it should subclass Package if sys.platform == "win32": win32_dir = os.path.join(self.stage.source_path, "win32") with working_dir(win32_dir): - nmake("install", *self.nmake_arguments, ignore_quotes=True) + nmake("install", *self.nmake_arguments(), ignore_quotes=True) else: make("install") |