Skip to content

Conversation

@aaronsch0
Copy link

Spack Exercise Submission

Maintainer: @aaronsch0
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:

  1. Activate Spack Environment:
   . /home/spackbuilder/spack/share/spack/setup-env.sh
  1. Install & Load Version 0.3.0:
  spack install spack-exercise@0.3.0
  spack load spack-exercise@0.3.0
  1. Run Executable:
   spackexample

I personal used:

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

The output was:

Let's fight with CMake, Docker, and some dependencies!

Modify a flat set using boost container
Elements in s1: 1 2 3 4

Inspect the current directory using boost filesystem
"." is a directory containing:
".bash_logout"
".bashrc"
".cache"
".local"
".profile"
".spack"
"spack"
"spack-exercise"

Parse some yaml file with yaml-cpp
/home/spackbuilder/spack-exercise/yamlParser/config.yml
Version: 1.2.3

depends_on("cxx", type="build")

depends_on("boost@1.65.1:", when="@0.2.0:")
depends_on("yaml-cpp@0.7.0:", when="@0.3.0:")
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 the dependency definition futureproof, one can set the latest version as the upper bound. So @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