Skip to content

Conversation

@vincentrein
Copy link

@vincentrein vincentrein commented Dec 1, 2025

Spack Exercise Submission

Github: @vincentrein
GitLab: reinvt

Changes: Added package.py for spack-exercise with versions 0.1.0, 0.2.0, and 0.3.0.

Testing Instructions

To verify the package and dependencies inside the provided Docker container:
Activate Spack Environment:

. /home/spackbuilder/spack/share/spack/setup-env.sh

Install & Load Version 0.3.0:

spack install spack-exercise@0.3.0
spack load spack-exercise@0.3.0

Run Executable:

spackexample

In order to make the spack commands work in the shell, I had to use:

eval $(spack load --sh spack-exercise@0.3.0)
spackexample /home/spackbuilder/spack-exercise/yamlParser/config.yml


depends_on("cmake@3.10:", type="build")
depends_on("boost", when="@0.2.0:")
depends_on("yaml-cpp@0.7.0", when="@0.3.0:") No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To make this dependency definition futureproof, one can set the upper bound to the latest version, so just saying when="@0.3.0".

@IshaanDesai
Copy link
Member

Good 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants