|
166 | 166 | spack find |
167 | 167 | ``` |
168 | 168 |
|
169 | | -- Load installed package, run code and unload |
| 169 | +- Load installed package, run, and unload |
170 | 170 |
|
171 | 171 | ```bash |
172 | 172 | spack load helloworld |
173 | 173 | helloworld |
174 | 174 | spack unload helloworld |
175 | 175 | ``` |
176 | 176 |
|
177 | | -- Install different version of code |
| 177 | +- Install different version |
178 | 178 |
|
179 | 179 | ```bash |
180 | 180 | spack install helloworld@0.2.0 |
|
190 | 190 |
|
191 | 191 | or open `package.py` file in `${HOME}/var/spack/repos/builtin/packages/helloworld/` |
192 | 192 |
|
193 | | -- **Optional**: one could add `main` branch and thus GitHub repository |
| 193 | +- Add the `main` branch as a version |
194 | 194 |
|
195 | 195 | ```diff |
196 | 196 | + git = "https://github.com/Simulation-Software-Engineering/HelloWorld.git" |
197 | 197 | + |
198 | 198 | + version("main", branch="main") |
199 | 199 | ``` |
200 | 200 |
|
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. |
202 | 202 |
|
203 | 203 | - Add artificial dependencies |
204 | 204 |
|
|
207 | 207 | + depends_on("zlib@:1.2") |
208 | 208 | ``` |
209 | 209 |
|
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` |
211 | 211 |
|
212 | | - - Show new dependencies |
| 212 | +- Show new dependencies |
213 | 213 |
|
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 | + ``` |
219 | 219 |
|
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`. |
221 | 221 |
|
222 | 222 | - Add an artificial variant |
223 | 223 |
|
|
0 commit comments