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 22#
33# SPDX-License-Identifier: (Apache-2.0 OR MIT)
44
5+ from spack_repo .builtin .build_systems .autotools import AutotoolsPackage
56from spack .package import *
67
78
Original file line number Diff line number Diff line change 22#
33# SPDX-License-Identifier: (Apache-2.0 OR MIT)
44
5+ from spack_repo .builtin .build_systems .autotools import AutotoolsPackage
56from spack .package import *
67
78
Original file line number Diff line number Diff line change 22#
33# SPDX-License-Identifier: (Apache-2.0 OR MIT)
44
5+ from spack_repo .builtin .build_systems .autotools import AutotoolsPackage
56from spack .package import *
67
78
@@ -49,10 +50,7 @@ def configure_args(self):
4950 stackstart = int (self .spec .variants ["stackstart" ].value )
5051 if stackstart :
5152 args .extend (
52- [
53- f"--with-stack-start-c={ stackstart } " ,
54- f"--with-stack-start-fortran={ stackstart } " ,
55- ]
53+ [f"--with-stack-start-c={ stackstart } " , f"--with-stack-start-fortran={ stackstart } " ]
5654 )
5755
5856 return args
Original file line number Diff line number Diff line change 22#
33# SPDX-License-Identifier: (Apache-2.0 OR MIT)
44
5+ from spack_repo .builtin .build_systems .autotools import AutotoolsPackage
56from spack .package import *
67
78
@@ -51,10 +52,7 @@ def configure_args(self):
5152 stackstart = int (self .spec .variants ["stackstart" ].value )
5253 if stackstart :
5354 args .extend (
54- [
55- f"--with-stack-start-c={ stackstart } " ,
56- f"--with-stack-start-fortran={ stackstart } " ,
57- ]
55+ [f"--with-stack-start-c={ stackstart } " , f"--with-stack-start-fortran={ stackstart } " ]
5856 )
5957
6058 return args
Original file line number Diff line number Diff line change 22#
33# SPDX-License-Identifier: (Apache-2.0 OR MIT)
44
5+ from spack_repo .builtin .build_systems .autotools import AutotoolsPackage
56from spack .package import *
67
78
@@ -51,10 +52,7 @@ def configure_args(self):
5152 stackstart = int (self .spec .variants ["stackstart" ].value )
5253 if stackstart :
5354 args .extend (
54- [
55- f"--with-stack-start-c={ stackstart } " ,
56- f"--with-stack-start-fortran={ stackstart } " ,
57- ]
55+ [f"--with-stack-start-c={ stackstart } " , f"--with-stack-start-fortran={ stackstart } " ]
5856 )
5957
6058 return args
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ project="$(dirname "$0")"
66
77rm -rf " ${raw_outputs:? } /packaging"
88. " $project /init_spack.sh"
9- mpileaks_package_py=" $SPACK_ROOT /var/spack/ repos/tutorial/packages/tutorial-mpileaks/package.py"
9+ mpileaks_package_py=" $HOME / repos/spack_repo /tutorial/packages/tutorial-mpileaks/package.py"
1010
1111export SPACK_COLOR=never
1212
13- example packaging/repo-add " spack repo add \$ SPACK_ROOT/var/spack/ repos/tutorial/"
13+ example packaging/repo-add " spack repo add \$ HOME/ repos/spack_repo /tutorial/"
1414
1515# make the editor automatically exit
1616export EDITOR=true
@@ -21,7 +21,7 @@ example packaging/checksum-mpileaks-1 "spack checksum tutorial-mpileaks 1.0"
2121example --expect-error packaging/install-mpileaks-1 " spack install tutorial-mpileaks"
2222
2323# cp "$PROJECT/package-py-files/1.package.py" "$mpileaks_package_py"
24- # example packaging/info-mpileaks "spack info tutorial-mpileaks"
24+ # example packaging/info-mpileaks "spack info --phases tutorial-mpileaks"
2525
2626cp " $PROJECT /package-py-files/2.package.py" " $mpileaks_package_py "
2727example --expect-error packaging/install-mpileaks-2 " spack install tutorial-mpileaks"
@@ -49,4 +49,4 @@ example packaging/install-mpileaks-6 "spack install --test=root tutorial-mpilea
4949
5050example packaging/cleanup " spack uninstall -ay tutorial-mpileaks"
5151example packaging/cleanup " spack repo remove tutorial"
52- example packaging/cleanup " rm -rf \$ SPACK_ROOT/var/spack/ repos/tutorial/packages/tutorial-mpileaks"
52+ example packaging/cleanup " rm -rf \$ HOME/ repos/spack_repo /tutorial/packages/tutorial-mpileaks"
Original file line number Diff line number Diff line change 1+ $ spack info --phases
12AutotoolsPackage: tutorial-mpileaks
23
34Description:
@@ -19,6 +20,9 @@ Variants:
1920 build_system [autotools] autotools
2021 Build systems supported by the package
2122
23+ Installation Phases:
24+ autoreconf configure build install
25+
2226Build Dependencies:
2327 autoconf automake c cxx fortran gmake gnuconfig libtool m4
2428
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
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
5+ from spack_repo .builtin .build_systems .autotools import AutotoolsPackage
66from spack .package import *
77
88
You can’t perform that action at this time.
0 commit comments