Skip to content

Commit 3ee0eda

Browse files
authored
packaging: fix highlights on updated files (#420)
1 parent 9c15c3d commit 3ee0eda

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

tutorial/examples/packaging/5.package.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ class TutorialMpileaks(AutotoolsPackage):
1414

1515
maintainers("alecbcs")
1616

17-
sanity_check_is_dir = ["bin", "lib", "shar"]
18-
1917
license("BSD", checked_by="alecbcs")
2018

19+
sanity_check_is_dir = ["bin", "lib", "shar"]
20+
2121
version("1.0", sha256="24c706591bdcd84541e19389a9314813ce848035ee877e213d528b184f4b43f9")
2222

2323
variant(

tutorial/examples/packaging/6.package.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ class TutorialMpileaks(AutotoolsPackage):
1414

1515
maintainers("alecbcs")
1616

17-
sanity_check_is_dir = ["bin", "lib", "share"]
18-
1917
license("BSD", checked_by="alecbcs")
2018

19+
sanity_check_is_dir = ["bin", "lib", "share"]
20+
2121
version("1.0", sha256="24c706591bdcd84541e19389a9314813ce848035ee877e213d528b184f4b43f9")
2222

2323
variant(

tutorial_packaging.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ directive as shown below:
260260
:caption: tutorial-mpileaks/package.py (from tutorial/examples/packaging/2.package.py)
261261
:lines: 6-
262262
:language: python
263-
:emphasize-lines: 26-28
263+
:emphasize-lines: 25-27
264264

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

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

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

0 commit comments

Comments
 (0)