You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote a BundlePackage recipe which depends on several packages.
Here is the recipe:
from spack.package import *
class SqmAbinit(BundlePackage):
"""
This is a meta package for the labworks using Abinit, Agate, qAgate
"""
homepage = "https://www.example.com"
url = "sqm_abinit"
version("1.0.0")
depends_on("gnuplot")
depends_on("abinit@9.10.3: +openmp +scalapack")
depends_on("agate@1.4.1:")
depends_on("qagate@1.3.0:")
depends_on("openmpi+legacylaunchers")
There is something strange happening in the generated modulefile. The generated modulefile lacks some "module load" of dependencies. It is provided below;
module-whatis " This is a meta package for the labworks using Abinit, Agate, qAgate "
proc ModulesHelp { } {
puts stderr "Name : sqm-abinit"
puts stderr "Version: 1.0.0"
puts stderr "Target : skylake_avx512"
puts stderr ""
puts stderr " This is a meta package for the labworks using Abinit, Agate, qAgate"
}
if {![info exists ::env(LMOD_VERSION_MAJOR)]} {
module load openmpi/4.1.5/gcc-12.3.0
module load gnuplot/5.4.3/gcc-12.3.0
} else {
depends-on openmpi/4.1.5/gcc-12.3.0
depends-on gnuplot/5.4.3/gcc-12.3.0
}
conflict sqm-abinit
prepend-path --delim ":" CMAKE_PREFIX_PATH "/softwares/spack/opt/spack/linux-ubuntu22.04-skylake_avx512/gcc-12.3.0/sqm-abinit-1.0.0-5eettc5nimqejxmp33rrfft2rlgjmaju/."
prepend-path --delim ":" XLOCALEDIR "/softwares/spack/opt/spack/linux-ubuntu22.04-skylake_avx512/gcc-12.3.0/libx11-1.8.4-lgvbt7p2n33wyqmbltkr6q3x5fyf2ngx/share/X11/locale"
prepend-path --delim ":" XDG_DATA_DIRS "/softwares/spack/opt/spack/linux-ubuntu22.04-skylake_avx512/gcc-12.3.0/gobject-introspection-1.72.1-k7bpopcx67b4ldvmll4pzqbqbx6j2fzh/share"
prepend-path --delim ":" GI_TYPELIB_PATH "/softwares/spack/opt/spack/linux-ubuntu22.04-skylake_avx512/gcc-12.3.0/gobject-introspection-1.72.1-k7bpopcx67b4ldvmll4pzqbqbx6j2fzh/lib/girepository-1.0"
prepend-path --delim ":" XDG_DATA_DIRS "/softwares/spack/opt/spack/linux-ubuntu22.04-skylake_avx512/gcc-12.3.0/harfbuzz-7.3.0-oznbd4sgoupzo5k5qc5hdgbylvkged7p/share"
prepend-path --delim ":" GI_TYPELIB_PATH "/softwares/spack/opt/spack/linux-ubuntu22.04-skylake_avx512/gcc-12.3.0/harfbuzz-7.3.0-oznbd4sgoupzo5k5qc5hdgbylvkged7p/lib/girepository-1.0"
prepend-path --delim ":" XDG_DATA_DIRS "/softwares/spack/opt/spack/linux-ubuntu22.04-skylake_avx512/gcc-12.3.0/pango-1.50.13-i5dpjhd25d4nzwbijwf7xdvni3vkxpav/share"
prepend-path --delim ":" GI_TYPELIB_PATH "/softwares/spack/opt/spack/linux-ubuntu22.04-skylake_avx512/gcc-12.3.0/pango-1.50.13-i5dpjhd25d4nzwbijwf7xdvni3vkxpav/lib/girepository-1.0"
prepend-path --delim ":" GI_TYPELIB_PATH "/softwares/spack/opt/spack/linux-ubuntu22.04-skylake_avx512/gcc-12.3.0/at-spi2-core-2.48.0-fqwim5kkafojhnfiamiszrpgwnivc63k/lib/girepository-1.0"
If I remove the agate and qagate dependencies, and then reinstall the recipe, the abinit module reappears in the module file :
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I wrote a BundlePackage recipe which depends on several packages.
Here is the recipe:
There is something strange happening in the generated modulefile. The generated modulefile lacks some "module load" of dependencies. It is provided below;
If I remove the
agate
andqagate
dependencies, and then reinstall the recipe, theabinit
module reappears in the module file :As these are not yet bundled in Spack, I add to this message the recipes for agate and qagate.
Also :
qagate_package.py.txt
agate_package.py.txt
Beta Was this translation helpful? Give feedback.
All reactions