dedisp: fix preinstall: it only takes self (#45328)

too many arguments here, only takes "self".
This commit is contained in:
Andrew W Elble 2024-07-22 14:00:14 -04:00 committed by GitHub
parent f044194b06
commit 63197fea3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,10 +36,10 @@ def edit(self, spec, prefix):
makefile.filter(r"^\s*INSTALL_DIR\s*\?=.*", "INSTALL_DIR ?= " + prefix)
@run_before("install")
def preinstall(self, spec, prefix):
def preinstall(self):
# The $PREFIX/dedisp/include and $PREFIX/dedisp/lib directories don't seem
# to be created automatically by the software's Makefile so manually create them
libdir = join_path(prefix, "lib")
incdir = join_path(prefix, "include")
libdir = join_path(self.prefix, "lib")
incdir = join_path(self.prefix, "include")
mkdirp(libdir)
mkdirp(incdir)