a Spack extension to install a directory full of files as a spack pagckage.
This includes:
- adding a recipe for the package if needed
- instaling the package
In most cases you can just do:
spack installdir package@version
to add the current directory tree as a version of the package.
You can also specify options:
- --directory /path/to/directory specify a directory other then the current directory
- --namespace name specify the namespace to create the recipe in (it defaults to "local")
After running spack installdir, you can edit the recipe with spack edit and add a "setup_run_environment()" method if you need the package to set environment variables, etc.
After cloning the repository somewhere, See the Spack docs on adding the path to config.yaml under 'extensions:'