-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update packaging package.py files for license and generated deps
- Loading branch information
Showing
16 changed files
with
327 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,45 @@ | ||
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other | ||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other | ||
# Spack Project Developers. See the top-level COPYRIGHT file for details. | ||
# | ||
# SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
|
||
from spack import * | ||
from spack.package import * | ||
|
||
|
||
class TutorialMpileaks(AutotoolsPackage): | ||
"""Tool to detect and report MPI objects like MPI_Requests and | ||
MPI_Datatypes.""" | ||
"""Tool to detect and report MPI objects like MPI_Requests and MPI_Datatypes.""" | ||
|
||
homepage = "https://github.com/LLNL/mpileaks" | ||
url = "https://github.com/LLNL/mpileaks/releases/download/v1.0/mpileaks-1.0.tar.gz" | ||
url = "https://github.com/LLNL/mpileaks/archive/refs/tags/v1.0.tar.gz" | ||
|
||
maintainers("adamjstewart") | ||
maintainers("alecbcs") | ||
|
||
version("1.0", sha256="2e34cc4505556d1c1f085758e26f2f8eea0972db9382f051b2dcfb1d7d9e1825") | ||
license("BSD", checked_by="alecbcs") | ||
|
||
version( | ||
"1.0", sha256="24c706591bdcd84541e19389a9314813ce848035ee877e213d528b184f4b43f9" | ||
) | ||
|
||
depends_on("c", type="build") | ||
depends_on("cxx", type="build") | ||
depends_on("fortran", type="build") | ||
|
||
depends_on("autoconf", type="build") | ||
depends_on("automake", type="build") | ||
depends_on("libtool", type="build") | ||
depends_on("m4", type="build") | ||
|
||
depends_on("mpi") | ||
depends_on("adept-utils") | ||
depends_on("callpath") | ||
|
||
def autoreconf(self, spec, prefix): | ||
autoreconf("--install", "--verbose", "--force") | ||
|
||
def configure_args(self): | ||
args = [ | ||
"--with-adept-utils={0}".format(self.spec["adept-utils"].prefix), | ||
"--with-callpath={0}".format(self.spec["callpath"].prefix), | ||
f"--with-adept-utils={self.spec['adept-utils'].prefix}", | ||
f"--with-callpath={self.spec['callpath'].prefix}", | ||
] | ||
|
||
return args |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,52 @@ | ||
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other | ||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other | ||
# Spack Project Developers. See the top-level COPYRIGHT file for details. | ||
# | ||
# SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
|
||
from spack import * | ||
from spack.package import * | ||
|
||
|
||
class TutorialMpileaks(AutotoolsPackage): | ||
"""Tool to detect and report MPI objects like MPI_Requests and | ||
MPI_Datatypes.""" | ||
"""Tool to detect and report MPI objects like MPI_Requests and MPI_Datatypes.""" | ||
|
||
homepage = "https://github.com/LLNL/mpileaks" | ||
url = "https://github.com/LLNL/mpileaks/releases/download/v1.0/mpileaks-1.0.tar.gz" | ||
url = "https://github.com/LLNL/mpileaks/archive/refs/tags/v1.0.tar.gz" | ||
|
||
maintainers("adamjstewart") | ||
maintainers("alecbcs") | ||
|
||
version("1.0", sha256="2e34cc4505556d1c1f085758e26f2f8eea0972db9382f051b2dcfb1d7d9e1825") | ||
license("BSD", checked_by="alecbcs") | ||
|
||
variant("stackstart", values=int, default=0, | ||
description="Specify the number of stack frames to truncate") | ||
version("1.0", sha256="24c706591bdcd84541e19389a9314813ce848035ee877e213d528b184f4b43f9") | ||
|
||
variant("stackstart", values=int, default=0, description="Specify the number of stack frames to truncate") | ||
|
||
depends_on("c", type="build") | ||
depends_on("cxx", type="build") | ||
depends_on("fortran", type="build") | ||
|
||
depends_on("autoconf", type="build") | ||
depends_on("automake", type="build") | ||
depends_on("libtool", type="build") | ||
depends_on("m4", type="build") | ||
|
||
depends_on("mpi") | ||
depends_on("adept-utils") | ||
depends_on("callpath") | ||
|
||
def autoreconf(self, spec, prefix): | ||
autoreconf("--install", "--verbose", "--force") | ||
|
||
def configure_args(self): | ||
args = [ | ||
"--with-adept-utils={0}".format(self.spec["adept-utils"].prefix), | ||
"--with-callpath={0}".format(self.spec["callpath"].prefix), | ||
f"--with-adept-utils={self.spec['adept-utils'].prefix}", | ||
f"--with-callpath={self.spec['callpath'].prefix}", | ||
] | ||
|
||
stackstart = int(self.spec.variants["stackstart"].value) | ||
if stackstart: | ||
args.extend([ | ||
"--with-stack-start-c={0}".format(stackstart), | ||
"--with-stack-start-fortran={0}".format(stackstart), | ||
f"--with-stack-start-c={stackstart}", | ||
f"--with-stack-start-fortran={stackstart}", | ||
]) | ||
|
||
return args |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,54 @@ | ||
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other | ||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other | ||
# Spack Project Developers. See the top-level COPYRIGHT file for details. | ||
# | ||
# SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
|
||
from spack import * | ||
from spack.package import * | ||
|
||
|
||
class TutorialMpileaks(AutotoolsPackage): | ||
"""Tool to detect and report MPI objects like MPI_Requests and | ||
MPI_Datatypes.""" | ||
"""Tool to detect and report MPI objects like MPI_Requests and MPI_Datatypes.""" | ||
|
||
homepage = "https://github.com/LLNL/mpileaks" | ||
url = "https://github.com/LLNL/mpileaks/releases/download/v1.0/mpileaks-1.0.tar.gz" | ||
url = "https://github.com/LLNL/mpileaks/archive/refs/tags/v1.0.tar.gz" | ||
|
||
maintainers("adamjstewart") | ||
maintainers("alecbcs") | ||
|
||
sanity_check_is_dir = ["bin", "lib", "shar"] | ||
|
||
version("1.0", sha256="2e34cc4505556d1c1f085758e26f2f8eea0972db9382f051b2dcfb1d7d9e1825") | ||
license("BSD", checked_by="alecbcs") | ||
|
||
variant("stackstart", values=int, default=0, | ||
description="Specify the number of stack frames to truncate") | ||
version("1.0", sha256="24c706591bdcd84541e19389a9314813ce848035ee877e213d528b184f4b43f9") | ||
|
||
variant("stackstart", values=int, default=0, description="Specify the number of stack frames to truncate") | ||
|
||
depends_on("c", type="build") | ||
depends_on("cxx", type="build") | ||
depends_on("fortran", type="build") | ||
|
||
depends_on("autoconf", type="build") | ||
depends_on("automake", type="build") | ||
depends_on("libtool", type="build") | ||
depends_on("m4", type="build") | ||
|
||
depends_on("mpi") | ||
depends_on("adept-utils") | ||
depends_on("callpath") | ||
|
||
def autoreconf(self, spec, prefix): | ||
autoreconf("--install", "--verbose", "--force") | ||
|
||
def configure_args(self): | ||
args = [ | ||
"--with-adept-utils={0}".format(self.spec["adept-utils"].prefix), | ||
"--with-callpath={0}".format(self.spec["callpath"].prefix), | ||
f"--with-adept-utils={self.spec['adept-utils'].prefix}", | ||
f"--with-callpath={self.spec['callpath'].prefix}", | ||
] | ||
|
||
stackstart = int(self.spec.variants["stackstart"].value) | ||
if stackstart: | ||
args.extend([ | ||
"--with-stack-start-c={0}".format(stackstart), | ||
"--with-stack-start-fortran={0}".format(stackstart), | ||
f"--with-stack-start-c={stackstart}", | ||
f"--with-stack-start-fortran={stackstart}", | ||
]) | ||
|
||
return args |
Oops, something went wrong.