Skip to content

Commit 6589d21

Browse files
committed
Update duration in README and slim down Spack demo notes
1 parent 129bbc2 commit 6589d21

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

03_building_and_packaging/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ Learning goals:
2222
| 30 minutes | [pip_demo.md](https://github.com/Simulation-Software-Engineering/Lecture-Material/blob/main/03_building_and_packaging/pip_demo.md) |
2323
| 90 minutes | [pypi_exercise.md](https://github.com/Simulation-Software-Engineering/Lecture-Material/blob/main/03_building_and_packaging/pypi_exercise.md) |
2424
| 45 minutes | [pypi_slides.md](https://github.com/Simulation-Software-Engineering/Lecture-Material/blob/main/03_building_and_packaging/pypi_slides.md) |
25-
| 45 minutes | [spack_slides.md](https://github.com/Simulation-Software-Engineering/Lecture-Material/blob/main/03_building_and_packaging/spack_slides.md), [spack_demo.md](https://github.com/Simulation-Software-Engineering/Lecture-Material/blob/main/03_building_and_packaging/spack_demo.md) |
26-
| 45 minutes | [spack_exercise.md](https://github.com/Simulation-Software-Engineering/Lecture-Material/blob/main/03_building_and_packaging/spack_exercise.md) |
25+
| 90 minutes | [spack_slides.md](https://github.com/Simulation-Software-Engineering/Lecture-Material/blob/main/03_building_and_packaging/spack_slides.md), [spack_demo.md](https://github.com/Simulation-Software-Engineering/Lecture-Material/blob/main/03_building_and_packaging/spack_demo.md) |
26+
| 90 minutes | [spack_exercise.md](https://github.com/Simulation-Software-Engineering/Lecture-Material/blob/main/03_building_and_packaging/spack_exercise.md) |

03_building_and_packaging/spack_demo.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,15 @@
166166
spack find
167167
```
168168

169-
- Load installed package, run code and unload
169+
- Load installed package, run, and unload
170170

171171
```bash
172172
spack load helloworld
173173
helloworld
174174
spack unload helloworld
175175
```
176176

177-
- Install different version of code
177+
- Install different version
178178

179179
```bash
180180
spack install helloworld@0.2.0
@@ -190,15 +190,15 @@
190190

191191
or open `package.py` file in `${HOME}/var/spack/repos/builtin/packages/helloworld/`
192192

193-
- **Optional**: one could add `main` branch and thus GitHub repository
193+
- Add the `main` branch as a version
194194

195195
```diff
196196
+ git = "https://github.com/Simulation-Software-Engineering/HelloWorld.git"
197197
+
198198
+ version("main", branch="main")
199199
```
200200

201-
This can also be used for `develop` branches etc. It is useful if one needs really the newest version of a package or if one develops software using Spack.
201+
This can also be used for `develop` branches etc. It is useful if the development state is required, or if one develops software using Spack.
202202

203203
- Add artificial dependencies
204204

@@ -207,17 +207,17 @@
207207
+ depends_on("zlib@:1.2")
208208
```
209209

210-
This means that the package depends on Python `3.0.0` or newer and newer if we use `helloworld` of version `0.3.0` or newer. The software also requires at most `zlib` in version `1.2.10`
210+
This states that the package depends on Python version `3.0.0` or newer if we use `helloworld` of version `0.3.0` or newer. The software also requires at most `zlib` in version `1.2.10`
211211

212-
- Show new dependencies
212+
- Show new dependencies
213213

214-
```bash
215-
spack spec helloworld
216-
spack spec helloworld@0.2.0
217-
spack info helloworld
218-
```
214+
```bash
215+
spack spec helloworld
216+
spack spec helloworld@0.2.0
217+
spack info helloworld
218+
```
219219

220-
The Python dependency will only show up for the newest version of our software package.
220+
The Python dependency will only show up for version `0.3.0`.
221221

222222
- Add an artificial variant
223223

0 commit comments

Comments
 (0)