Skip to content

Commit

Permalink
packaging: fix highlights on updated files (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecbcs authored Nov 18, 2024
1 parent 9c15c3d commit 3ee0eda
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions tutorial/examples/packaging/5.package.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ class TutorialMpileaks(AutotoolsPackage):

maintainers("alecbcs")

sanity_check_is_dir = ["bin", "lib", "shar"]

license("BSD", checked_by="alecbcs")

sanity_check_is_dir = ["bin", "lib", "shar"]

version("1.0", sha256="24c706591bdcd84541e19389a9314813ce848035ee877e213d528b184f4b43f9")

variant(
Expand Down
4 changes: 2 additions & 2 deletions tutorial/examples/packaging/6.package.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ class TutorialMpileaks(AutotoolsPackage):

maintainers("alecbcs")

sanity_check_is_dir = ["bin", "lib", "share"]

license("BSD", checked_by="alecbcs")

sanity_check_is_dir = ["bin", "lib", "share"]

version("1.0", sha256="24c706591bdcd84541e19389a9314813ce848035ee877e213d528b184f4b43f9")

variant(
Expand Down
6 changes: 3 additions & 3 deletions tutorial_packaging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ directive as shown below:
:caption: tutorial-mpileaks/package.py (from tutorial/examples/packaging/2.package.py)
:lines: 6-
:language: python
:emphasize-lines: 26-28
:emphasize-lines: 25-27

Adding dependencies tells Spack that it must ensure these packages are
installed *before* it can build our package.
Expand Down Expand Up @@ -436,7 +436,7 @@ in the ``configure_args`` method as follows:
:caption: tutorial-mpileaks/package.py (from tutorial/examples/packaging/3.package.py)
:lines: 6-
:language: python
:emphasize-lines: 21-24
:emphasize-lines: 31-34

Since this is an ``AutotoolsPackage``, the arguments returned from the
method will automatically get passed to ``configure`` during the build.
Expand Down Expand Up @@ -500,7 +500,7 @@ and add the ``variant`` directive and associated arguments as follows:
:caption: tutorial-mpileaks/package.py (from tutorial/examples/packaging/4.package.py)
:lines: 6-
:language: python
:emphasize-lines: 16-17,29-34
:emphasize-lines: 16-21,44-51

Notice that the ``variant`` directive is translated into a ``variants`` dictionary
in ``self.spec``. Also note that the value provided by the user is accessed
Expand Down

0 comments on commit 3ee0eda

Please sign in to comment.