File tree Expand file tree Collapse file tree
tutorial/examples/packaging Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
2- # Spack Project Developers. See the top-level COPYRIGHT file for details.
1+ # Copyright Spack Project Developers. See COPYRIGHT file for details.
32#
43# SPDX-License-Identifier: (Apache-2.0 OR MIT)
54
2019# See the Spack documentation for more information on packaging.
2120# ----------------------------------------------------------------------------
2221
22+ from spack_repo .builtin .build_systems .autotools import AutotoolsPackage
2323from spack .package import *
2424
2525
Original file line number Diff line number Diff line change 1- # Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
2- # Spack Project Developers. See the top-level COPYRIGHT file for details.
1+ # Copyright Spack Project Developers. See COPYRIGHT file for details.
32#
43# SPDX-License-Identifier: (Apache-2.0 OR MIT)
54
5+ from spack_repo .builtin .build_systems .autotools import AutotoolsPackage
66from spack .package import *
77
88
Original file line number Diff line number Diff line change 1- # Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
2- # Spack Project Developers. See the top-level COPYRIGHT file for details.
1+ # Copyright Spack Project Developers. See COPYRIGHT file for details.
32#
43# SPDX-License-Identifier: (Apache-2.0 OR MIT)
54
Original file line number Diff line number Diff line change 1- # Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
2- # Spack Project Developers. See the top-level COPYRIGHT file for details.
1+ # Copyright Spack Project Developers. See COPYRIGHT file for details.
32#
43# SPDX-License-Identifier: (Apache-2.0 OR MIT)
54
Original file line number Diff line number Diff line change 1- # Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
2- # Spack Project Developers. See the top-level COPYRIGHT file for details.
1+ # Copyright Spack Project Developers. See COPYRIGHT file for details.
32#
43# SPDX-License-Identifier: (Apache-2.0 OR MIT)
54
Original file line number Diff line number Diff line change 1- # Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
2- # Spack Project Developers. See the top-level COPYRIGHT file for details.
1+ # Copyright Spack Project Developers. See COPYRIGHT file for details.
32#
43# SPDX-License-Identifier: (Apache-2.0 OR MIT)
54
Original file line number Diff line number Diff line change 1- # Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
2- # Spack Project Developers. See the top-level COPYRIGHT file for details.
1+ # Copyright Spack Project Developers. See COPYRIGHT file for details.
32#
43# SPDX-License-Identifier: (Apache-2.0 OR MIT)
54
Original file line number Diff line number Diff line change 11$ spack create --name tutorial-mpileaks https://github.com/LLNL/mpileaks/archive/refs/tags/v1.0.tar.gz
22==> Using specified package name: 'tutorial-mpileaks'
33==> Fetching https://github.com/LLNL/mpileaks/archive/refs/tags/v1.0.tar.gz
4+ [100%] 339.70 KB @ 4.2 MB/s
45==> This package looks like it uses the autoreconf build system
56==> Created template for tutorial-mpileaks package
6- ==> Created package file: /home/spack5/ spack/var/spack/ repos/tutorial/packages/tutorial-mpileaks /package.py
7+ ==> Created package file: /home/spack/repos/spack_repo/ tutorial/packages/tutorial_mpileaks /package.py
Original file line number Diff line number Diff line change 1- $ spack info tutorial-mpileaks
21AutotoolsPackage: tutorial-mpileaks
32
43Description:
5- Tool to detect and report MPI objects like MPI_Requests and
4+ Tool to detect and report leaked MPI objects like MPI_Requests and
65 MPI_Datatypes.
76
87Homepage: https://github.com/LLNL/mpileaks
98
109Preferred version:
11- 1.0 https://github.com/LLNL/mpileaks/archive/refs/tags/v1.0.tar.gz
10+ 1.0 https://github.com/LLNL/mpileaks/archive/refs/tags/v1.0.tar.gz
1211
1312Safe versions:
14- 1.0 https://github.com/LLNL/mpileaks/archive/refs/tags/v1.0.tar.gz
13+ 1.0 https://github.com/LLNL/mpileaks/archive/refs/tags/v1.0.tar.gz
1514
1615Deprecated versions:
1716 None
1817
1918Variants:
20- build_system [autotools] autotools
21- Build systems supported by the package
19+ build_system [autotools] autotools
20+ Build systems supported by the package
2221
2322Build Dependencies:
24- autoconf automake gmake gnuconfig libtool m4
23+ autoconf automake c cxx fortran gmake gnuconfig libtool m4
2524
2625Link Dependencies:
2726 None
@@ -31,4 +30,3 @@ Run Dependencies:
3130
3231Licenses:
3332 BSD
34-
Original file line number Diff line number Diff line change 1- $ spack repo add $SPACK_ROOT/var/spack/repos/tutorial/
2- ==> Added repo with namespace 'tutorial'.
1+ $ mkdir repos
2+ $ spack repo create repos tutorial
3+ ==> Created repo with namespace 'tutorial'.
4+ ==> To register it with spack, run this command:
5+ spack repo add /home/spack/repos/spack_repo/tutorial
6+ $ spack repo add /home/spack/repos/spack_repo/tutorial
7+ ==> Added repo to config with name 'tutorial'.
You can’t perform that action at this time.
0 commit comments