1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
# Common stuff for "pgi" modulefiles
# Using "flavours" strategy
#
# Expects the following Tcl variables to have been previously set:
# version: version of gnu compiler collection
# Initialise "flavours"
package require flavours
flavours init
proc ModulesHelp { } {
global version
puts stderr "
This is the dummy GNU compiler suite modulefile for the cookbook
Handling Compiler and other Package Dependencies
It does not actually do anything
gnu version: $version
"
}
module-whatis "Dummy Gnu $version for cookbook"
# Find the software root. In production, you should
# hardcode to your real software root
set gitroot $::env(MOD_GIT_ROOTDIR)
set swroot $gitroot/doc/example/compiler-etc-dependencies/dummy-sw-root
# While flavours wants the module named gnu, the software install is in gcc
set pkgroot $swroot/gcc
set vroot $pkgroot/$version
set bindir $vroot/bin
prepend-path PATH $bindir
# don't load multiple versions of this module (or other compilers)
conflict gcc
conflict gnu
conflict pgi
conflict intel
# Reload any modules with this as a prerequisite
flavours cleanup
|