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.
This commit is contained in:
parent
1175831203
commit
d79c8179fc
@ -213,7 +213,6 @@ def do_stage(self, mirror_only=False):
|
|||||||
perm = os.stat(filename).st_mode
|
perm = os.stat(filename).st_mode
|
||||||
os.chmod(filename, perm | 0o200)
|
os.chmod(filename, perm | 0o200)
|
||||||
|
|
||||||
@property
|
|
||||||
def nmake_arguments(self):
|
def nmake_arguments(self):
|
||||||
args = []
|
args = []
|
||||||
if self.spec.satisfies("%msvc"):
|
if self.spec.satisfies("%msvc"):
|
||||||
@ -304,7 +303,7 @@ def install(self, spec, prefix):
|
|||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
win32_dir = os.path.join(self.stage.source_path, "win32")
|
win32_dir = os.path.join(self.stage.source_path, "win32")
|
||||||
with working_dir(win32_dir):
|
with working_dir(win32_dir):
|
||||||
nmake("install", *self.nmake_arguments, ignore_quotes=True)
|
nmake("install", *self.nmake_arguments(), ignore_quotes=True)
|
||||||
else:
|
else:
|
||||||
make("install")
|
make("install")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user