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 @@ -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 (
Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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
265265Adding dependencies tells Spack that it must ensure these packages are
266266installed *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
441441Since this is an ``AutotoolsPackage ``, the arguments returned from the
442442method 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
505505Notice that the ``variant `` directive is translated into a ``variants `` dictionary
506506in ``self.spec ``. Also note that the value provided by the user is accessed
You can’t perform that action at this time.
0 commit comments