1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# 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)
import os
from spack.package import *
class Prrte(AutotoolsPackage):
"""PRRTE is the Reference RunTime Environment implementation for PMIx.
It is capable of operating within a host SMS. The reference RTE
therefore provides an easy way of exploring PMIx capabilities and
testing PMIx-based applications outside of a PMIx-enabled
environment."""
homepage = "https://pmix.org"
url = "https://github.com/pmix/prrte/releases/download/v1.0.0/prrte-1.0.0.tar.bz2"
git = "https://github.com/pmix/prrte.git"
maintainers("rhc54")
license("BSD-3-Clause-Open-MPI")
version("develop", branch="master")
version("1.0.0", sha256="a9b3715e059c10ed091bd6e3a0d8896f7752e43ee731abcc95fb962e67132a2d")
depends_on("pmix")
depends_on("libevent")
depends_on("hwloc")
depends_on("perl", type=("build"))
depends_on("m4", type=("build"))
depends_on("autoconf", type=("build"))
depends_on("automake", type=("build"))
depends_on("libtool", type=("build"))
depends_on("flex", type=("build"))
depends_on("pkgconfig", type="build")
def autoreconf(self, spec, prefix):
# If configure exists nothing needs to be done
if os.path.exists(self.configure_abs_path):
return
with working_dir(self.configure_directory):
perl = spec["perl"].command
perl("autogen.pl")
def configure_args(self):
spec = self.spec
config_args = ["--enable-shared", "--enable-static", "--disable-sphinx"]
# libevent
config_args.append("--with-libevent={0}".format(spec["libevent"].prefix))
# hwloc
config_args.append("--with-hwloc={0}".format(spec["hwloc"].prefix))
# pmix
config_args.append("--with-pmix={0}".format(spec["pmix"].prefix))
return config_args
|