Hey Rob:
Take a look at Spack environments:
https://spack.readthedocs.io/en/latest/tutorial_environments.html
You can make a spack.yaml file like this:
spack:
specs:
- hdf5
- zlib
Add your 3- packages to the list, cd to the directory containing spack.yaml, and type `spack install`. A `spack.lock` file will be spit out that you can use to create the environment exactly the same way elsewhere.
-Todd
--
You received this message because you are subscribed to the Google Groups "Spack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
spack+un...@googlegroups.com.
To post to this group, send email to sp...@googlegroups.com.
Visit this group at https://groups.google.com/group/spack.
To view this discussion on the web visit
https://groups.google.com/d/msgid/spack/6cb6ed70-787d-4555-ad08-732605ad5e60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Spack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spack+un...@googlegroups.com.
To post to this group, send email to sp...@googlegroups.com.
Visit this group at https://groups.google.com/group/spack.
To view this discussion on the web visit https://groups.google.com/d/msgid/spack/6cb6ed70-787d-4555-ad08-732605ad5e60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
packages.yaml configuration tells you *how* to concretize packages (and which external packages to use) but not *what* to install. You can add a packages: section to your spack.yaml file to include those types of configuration settings with your environment.
I guess I should enumerate a few other things for those interested in the finer details:
Sorry for the confusion!
-Todd
To view this discussion on the web visit https://groups.google.com/d/msgid/spack/CAM%3Dpu%2BLd7EckD8e3KFuhKtLEgTc_Y1N1scq%3D6u%2BQz-_jZ0fOBQ%40mail.gmail.com.
Hey Rob:
Take a look at Spack environments:
https://spack.readthedocs.io/en/latest/tutorial_environments.html
You can make a spack.yaml file like this:
spack:
specs:
- hdf5
- zlib
Add your 3- packages to the list, cd to the directory containing spack.yaml, and type `spack install`. A `spack.lock` file will be spit out that you can use to create the environment exactly the same way elsewhere.
-Todd
From: <sp...@googlegroups.com> on behalf of Rob G <rob....@gmail.com>
Date: Tuesday, May 14, 2019 at 5:38 PM
To: Spack <sp...@googlegroups.com>
Subject: [spack] Installing a list of packages from a file
I swear that when I was reading the spack documents, it mentioned somewhere that "You can execute several separate spack install statements for each package you'd like to install, or you can define the packages to install in a file and use that", but I CANNOT find that reference now.
I know that the command "spack install --file <something.yaml>" exists, but I cannot find any reference for what shape this file takes internally.
Basically, I want to be able to define the 30 packages I want installed on the system so that I can go to any system, say "spack install" and it will install those same packages. If that's "spack install -f", then what goes in the .yaml file for those 30 packages?
Thanks.
Rob
--
You received this message because you are subscribed to the Google Groups "Spack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sp...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to spack+un...@googlegroups.com.
To post to this group, send email to sp...@googlegroups.com.
Visit this group at https://groups.google.com/group/spack.
To view this discussion on the web visit https://groups.google.com/d/msgid/spack/a7cb254d-161e-49d4-a597-a559dbfed7c0%40googlegroups.com.
Yep, and tha spack.yaml file is designed to be versioned in a git repo, so you should also be able to version custom repositories, etc. that you might want.
You may also be interested in some extensions we’re adding to the format, mostly to make large deployments at HPC centers easier:
Todd
---
Sent from Workspace ONE Boxer
I am indeed interested in that, as I'm evaluating spack for our HPC cluster. Thank you!Rob
On Tuesday, May 14, 2019 at 12:15:34 PM UTC-4, Todd Gamblin wrote:Yep, and tha spack.yaml file is designed to be versioned in a git repo, so you should also be able to version custom repositories, etc. that you might want.