Skip to content

Commit e3778a8

Browse files
authored
Set UDUNITS2_XML_PATH in modules (#1843)
This is the "simple" solution to #1842. The ideal way will be to do so via spack-packages, but since spack-stack 2.0 is out soon, this is the "easy" way. We can undo this once/if spack/spack-packages#2729 is merged and then get into 2.1
1 parent da94ac0 commit e3778a8

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

configs/common/modules_lmod.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,12 @@ modules:
266266
set:
267267
'UPP_INC': '{prefix}/include'
268268
'UPP_LIB': '{prefix}/lib/libupp.a'
269+
# NOTE: This will be fixed upstream in udunits Spack package
270+
# Once this is done, remove this section
271+
udunits:
272+
environment:
273+
set:
274+
'UDUNITS2_XML_PATH': '{prefix}/share/udunits/udunits2.xml'
269275

270276
hierarchy:
271277
- mpi

configs/common/modules_tcl.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,3 +285,9 @@ modules:
285285
set:
286286
'UPP_INC': '{prefix}/include'
287287
'UPP_LIB': '{prefix}/lib/libupp.a'
288+
# NOTE: This will be fixed upstream in udunits Spack package
289+
# Once this is done, remove this section
290+
udunits:
291+
environment:
292+
set:
293+
'UDUNITS2_XML_PATH': '{prefix}/share/udunits/udunits2.xml'

0 commit comments

Comments
 (0)