From f8ce84860c448258e4e90f38ef7d67b8e7718ec0 Mon Sep 17 00:00:00 2001 From: Matthew Whitlock Date: Fri, 2 Feb 2024 05:05:26 -0500 Subject: Update packages_yaml.rst (#42438) Fix an incorrect example. --- lib/spack/docs/packages_yaml.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/spack/docs/packages_yaml.rst b/lib/spack/docs/packages_yaml.rst index e332919094..bfd7f5ca2b 100644 --- a/lib/spack/docs/packages_yaml.rst +++ b/lib/spack/docs/packages_yaml.rst @@ -657,10 +657,11 @@ You can assign class-level attributes in the configuration: packages: mpileaks: - # Override existing attributes - url: http://www.somewhereelse.com/mpileaks-1.0.tar.gz - # ... or add new ones - x: 1 + package_attributes: + # Override existing attributes + url: http://www.somewhereelse.com/mpileaks-1.0.tar.gz + # ... or add new ones + x: 1 Attributes set this way will be accessible to any method executed in the package.py file (e.g. the ``install()`` method). Values for these -- cgit v1.2.3-70-g09d2