Skip to content

Commit

Permalink
getting FW_SEARCH_PATH FHICL_FILE_PATH and CET_PLUGIN_PATH mostly con…
Browse files Browse the repository at this point in the history
…sistent with UPS packages, using setup_run_environment
  • Loading branch information
marcmengel committed Apr 3, 2024
1 parent 08b71f0 commit c568597
Show file tree
Hide file tree
Showing 67 changed files with 116 additions and 151 deletions.
4 changes: 1 addition & 3 deletions packages/art-root-io/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ def setup_dependent_build_environment(self, env, dependent_spec):
# Cleanup.
sanitize_environments(env, "CET_PLUGIN_PATH")

def setup_dependent_run_environment(self, env, dependent_spec):
def setup_run_environment(self, env):
prefix = self.prefix
# Ensure we can find plugin libraries.
env.prepend_path("CET_PLUGIN_PATH", prefix.lib)
# Cleanup.
sanitize_environments(env, "CET_PLUGIN_PATH")
4 changes: 1 addition & 3 deletions packages/art/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,9 @@ def setup_dependent_build_environment(self, env, dependent_spec):
# Cleaup.
sanitize_environments(env, "CET_PLUGIN_PATH", "PERL5LIB")

def setup_dependent_run_environment(self, env, dependent_spec):
def setup_run_environment(self, env):
prefix = self.prefix
# Ensure we can find plugin libraries.
env.prepend_path("CET_PLUGIN_PATH", prefix.lib)
# Perl modules.
env.prepend_path("PERL5LIB", os.path.join(prefix, "perllib"))
# Cleaup.
sanitize_environments(env, "CET_PLUGIN_PATH", "PERL5LIB")
5 changes: 5 additions & 0 deletions packages/artg4tk/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,8 @@ def setup_build_environment(self, spack_env):
spack_env.set("CETBUILDTOOLS_VERSION", self.spec["cetmodules"].version)
spack_env.set("CETBUILDTOOLS_DIR", self.spec["cetmodules"].prefix)
spack_env.set("LD_LIBRARY_PATH", self.spec["root"].prefix.lib)

def setup_run_environment(self, run_env):
run_env.prepend_path("ROOT_INCLUDE_PATH", self.prefix.include)
run_env.append_path("FHICL_FILE_PATH", "{0}/fcl".format(self.prefix))
run_env.append_path("CET_PLUGIN_PATH", self.prefix.lib)
4 changes: 1 addition & 3 deletions packages/bxdecay0/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,8 @@ def setup_dependent_build_environment(self, spack_env, dependent_spec):
# Cleanup.
sanitize_environments(spack_env)

def setup_dependent_run_environment(self, run_env, dependent_spec):
def setup_run_environment(self, run_env):
# Binaries.
run_env.prepend_path("PATH", self.prefix.bin)
# Ensure Root can find headers for autoparsing.
run_env.prepend_path("ROOT_INCLUDE_PATH", self.prefix.include)
# Cleanup.
sanitize_environments(run_env)
10 changes: 4 additions & 6 deletions packages/canvas-root-io/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,12 @@ def setup_dependent_build_environment(self, env, dependent_spec):
sanitize_environments(env, "CET_PLUGIN_PATH", "LD_LIBRARY_PATH", "ROOT_INCLUDE_PATH")

def setup_dependent_run_environment(self, env, dependent_spec):
prefix = self.prefix
# Set LD_LIBRARY_PATH so CheckClassVersion.py can find cppyy lib
env.prepend_path("LD_LIBRARY_PATH", join_path(self.spec["root"].prefix.lib))
env.prepend_path("LD_LIBRARY_PATH", join_path(self.spec["root"].prefix.lib,"root"))
# Ensure Root can find headers for autoparsing.
for d in dependent_spec.traverse(
root=False, cover="nodes", order="post", deptype=("link"), direction="children"
):
env.prepend_path("ROOT_INCLUDE_PATH", str(dependent_spec[d.name].prefix.include))
# Cleanup.
sanitize_environments(env, "CET_PLUGIN_PATH", "LD_LIBRARY_PATH", "ROOT_INCLUDE_PATH")

def setup_run_environment(self, run_env):
run_env.prepend_path("ROOT_INCLUDE_PATH", self.prefix.include)
run_env.append_path("CET_PLUGIN_PATH", self.prefix.lib)
4 changes: 4 additions & 0 deletions packages/canvas/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,7 @@ def setup_build_environment(self, env):
env.prepend_path("PATH", os.path.join(prefix, "bin"))
# Cleanup.
sanitize_environments(env, "PATH")

def setup_run_environment(self, run_env):
run_env.prepend_path("ROOT_INCLUDE_PATH", self.prefix.include)
run_env.append_path("CET_PLUGIN_PATH", self.prefix.lib)
4 changes: 4 additions & 0 deletions packages/cetlib-except/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,7 @@ def setup_build_environment(self, env):
env.prepend_path("PATH", os.path.join(self.build_directory, "bin"))
# Cleanup.
sanitize_environments(env, "PATH")

def setup_run_environment(self, run_env):
run_env.prepend_path("ROOT_INCLUDE_PATH", self.prefix.include)
run_env.append_path("CET_PLUGIN_PATH", self.prefix.lib)
4 changes: 3 additions & 1 deletion packages/cetlib/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,11 @@ def setup_dependent_build_environment(self, env, dependent_spec):
# Cleanup.
sanitize_environments(env, "PERL5LIB")

def setup_dependent_run_environment(self, env, dependent_spec):
def setup_run_environment(self, env):
prefix = self.prefix
env.prepend_path("PATH", self.prefix.bin)
# Perl modules.
env.prepend_path("PERL5LIB", os.path.join(prefix, "perllib"))
# Cleanup.
sanitize_environments(env, "PERL5LIB")
env.prepend_path("CET_PLUGIN_PATH", prefix.lib )
3 changes: 1 addition & 2 deletions packages/cry/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,11 @@ def setup_dependent_build_environment(self, spack_env, dspec):
spack_env.prepend_path("CET_PLUGIN_PATH", self.prefix.lib)
spack_env.prepend_path("ROOT_INCLUDE_PATH", self.prefix.src)

def setup_dependent_run_environment(self, run_env, dspec):
def setup_run_environment(self, run_env):
run_env.set("CRYHOME", self.prefix)
run_env.set("CRY_LIB", self.prefix.lib)
run_env.set("CRYDATAPATH", self.prefix.data)
# Ensure we can find plugin libraries.
run_env.prepend_path("CET_PLUGIN_PATH", self.prefix.lib)
run_env.prepend_path("ROOT_INCLUDE_PATH", self.prefix.src)

@run_after("install")
Expand Down
2 changes: 1 addition & 1 deletion packages/dk2nudata/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ def setup_dependent_build_environment(self, spack_env, dspec):
spack_env.set("DK2NUDATA_LIB", self.prefix.lib)
spack_env.set("DK2NUDATA_INC", self.prefix.include)

def setup_dependent_run_environment(self, run_env, dspec):
def setup_run_environment(self, run_env):
# Ensure we can find plugin libraries.
run_env.prepend_path("CET_PLUGIN_PATH", self.prefix.lib)
4 changes: 1 addition & 3 deletions packages/dunetpc/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def setup_dependent_build_environment(self, spack_env, dependent_spec):
# Cleanup.
sanitize_environments(spack_env)

def setup_dependent_run_environment(self, run_env, dependent_spec):
def setup_run_environment(self, run_env):
# Binaries.
run_env.prepend_path("PATH", self.prefix.bin)
# Ensure we can find plugin libraries.
Expand All @@ -129,5 +129,3 @@ def setup_dependent_run_environment(self, run_env, dependent_spec):
run_env.prepend_path("ROOT_INCLUDE_PATH", self.prefix.include)
# Perl modules.
run_env.prepend_path("PERL5LIB", os.path.join(self.prefix, "perllib"))
# Cleanup.
sanitize_environments(run_env)
5 changes: 4 additions & 1 deletion packages/fhicl-cpp/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,11 @@ def setup_build_environment(self, env):
sanitize_environments(env, "PATH")

def setup_run_environment(self, env):
bindir = self.prefix.bin
env.prepend_path("PATH", self.prefix.bin)
env.prepend_path("ROOT_INCLUDE_PATH", self.prefix.include)
env.append_path("CET_PLUGIN_PATH", self.prefix.lib)
# Bash completions.
bindir = self.prefix.bin
env.from_sourcing_file(os.path.join(bindir, "fhicl-dump_completions"))
env.from_sourcing_file(os.path.join(bindir, "fhicl-expand_completions"))
env.from_sourcing_file(os.path.join(bindir, "fhicl-get_completions"))
8 changes: 8 additions & 0 deletions packages/gallery/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,11 @@ def setup_dependent_build_environment(self, env, dependent_spec):
env.prepend_path("CET_PLUGIN_PATH", prefix.lib)
# Cleaup.
sanitize_environments(env, "CET_PLUGIN_PATH")

def setup_run_environment(self, run_env):
run_env.prepend_path("PATH", self.prefix.bin)
run_env.prepend_path("ROOT_INCLUDE_PATH", self.prefix.include)
run_env.append_path("FHICL_FILE_PATH", "{0}/fcl".format(self.prefix))
run_env.append_path("FW_SEARCH_PATH", "{0}/fw".format(self.prefix))
run_env.append_path("CET_PLUGIN_PATH", self.prefix.lib)

2 changes: 1 addition & 1 deletion packages/genie/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def setup_dependent_build_environment(self, spack_env, dspec):
spack_env.append_path("ROOT_INCLUDE_PATH", "{0}/GENIE".format(self.prefix.include))
spack_env.append_path("LD_LIBRARY_PATH", self.prefix.lib)

def setup_dependent_run_environment(self, run_env, dspec):
def setup_run_environment(self, run_env):
run_env.set("GENIE", self.prefix)
run_env.set("GENIE_VERSION", "v{0}".format(self.version.underscored))
run_env.prepend_path("PATH", self.prefix.bin)
Expand Down
4 changes: 4 additions & 0 deletions packages/hep-concurrency/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,7 @@ def setup_build_environment(self, env):
env.prepend_path("PATH", os.path.join(prefix, "bin"))
# Cleanup.
sanitize_environments(env, "PATH")

def setup_run_environment(self, run_env):
run_env.prepend_path("ROOT_INCLUDE_PATH", self.prefix.include)
run_env.append_path("CET_PLUGIN_PATH", self.prefix.lib)
4 changes: 1 addition & 3 deletions packages/icarus-signal-processing/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def setup_dependent_build_environment(self, spack_env, dependent_spec):
# Cleanup.
sanitize_environments(spack_env)

def setup_dependent_run_environment(self, run_env, dependent_spec):
def setup_run_environment(self, run_env):
# Binaries.
run_env.prepend_path("PATH", self.prefix.bin)
# Ensure we can find plugin libraries.
Expand All @@ -142,5 +142,3 @@ def setup_dependent_run_environment(self, run_env, dependent_spec):
run_env.prepend_path("ROOT_INCLUDE_PATH", self.prefix.include)
# Perl modules.
run_env.prepend_path("PERL5LIB", os.path.join(self.prefix, "perllib"))
# Cleanup.
sanitize_environments(run_env)
4 changes: 1 addition & 3 deletions packages/icarusalg/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def setup_dependent_build_environment(self, spack_env, dependent_spec):
# Cleanup.
sanitize_environments(spack_env)

def setup_dependent_run_environment(self, run_env, dependent_spec):
def setup_run_environment(self, run_env):
# Binaries.
run_env.prepend_path("PATH", self.prefix.bin)
# Ensure we can find plugin libraries.
Expand All @@ -208,5 +208,3 @@ def setup_dependent_run_environment(self, run_env, dependent_spec):
run_env.prepend_path("PERL5LIB", os.path.join(self.prefix, "perllib"))
#
run_env.append_path("FW_SEARCH_PATH", "{0}/gdml".format(self.prefix))
# Cleanup.
sanitize_environments(run_env)
4 changes: 1 addition & 3 deletions packages/icaruscode/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def setup_dependent_build_environment(self, spack_env, dependent_spec):
# Cleanup.
sanitize_environments(spack_env)

def setup_dependent_run_environment(self, run_env, dependent_spec):
def setup_run_environment(self, run_env):
# Binaries.
run_env.prepend_path("PATH", self.prefix.bin)
# Ensure we can find plugin libraries.
Expand All @@ -223,5 +223,3 @@ def setup_dependent_run_environment(self, run_env, dependent_spec):
run_env.prepend_path("PERL5LIB", os.path.join(self.prefix, "perllib"))
# FW search path
run_env.append_path("FW_SEARCH_PATH", os.path.join(self.prefix, "fw"))
# Cleanup.
sanitize_environments(run_env)
2 changes: 1 addition & 1 deletion packages/icarusutil/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def setup_dependent_build_environment(self, spack_env, dspec):
spack_env.append_path("FHICL_FILE_PATH", "{0}/job".format(self.prefix))
spack_env.append_path("FW_SEARCH_PATH", "{0}/gdml".format(self.prefix))

def setup_dependent_run_environment(self, run_env, dspec):
def setup_run_environment(self, run_env):
# Ensure we can find plugin libraries.
run_env.prepend_path("CET_PLUGIN_PATH", self.prefix.lib)
run_env.prepend_path("PATH", self.prefix.bin)
Expand Down
2 changes: 1 addition & 1 deletion packages/ifbeam/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,5 @@ def setup_run_unvironment(self, run_env):
def setup_dependent_build_environment(self, spack_env, dspec):
spack_env.set("IFBEAM_DIR", self.prefix)

def setup_dependent_run_environment(self, run_env, dspec):
def setup_run_environment(self, run_env):
run_env.set("IFBEAM_DIR", self.prefix)
2 changes: 1 addition & 1 deletion packages/ifdh-art/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def setup_dependent_build_environment(self, spack_env, dspec):
spack_env.prepend_path("CET_PLUGIN_PATH", self.prefix.lib)
spack_env.prepend_path("PATH", self.prefix.bin)

def setup_dependent_run_environment(self, run_env, dspec):
def setup_run_environment(self, run_env):
# Ensure we can find plugin libraries.
run_env.prepend_path("CET_PLUGIN_PATH", self.prefix.lib)
run_env.prepend_path("PATH", self.prefix.bin)
Expand Down
2 changes: 1 addition & 1 deletion packages/ifdhc/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def setup_dependent_build_environment(self, spack_env, dspec):
spack_env.set("IFDHC_DIR", self.spec.prefix)
spack_env.set("IFDHC_INC", self.spec.prefix.inc)

def setup_dependent_run_environment(self, run_env, dspec):
def setup_run_environment(self, run_env):
run_env.prepend_path("PATH", self.prefix.bin)
# Non-standard, therefore we have to do it ourselves.
run_env.prepend_path("ROOT_INCLUDE_PATH", self.spec.prefix.inc)
Expand Down
2 changes: 1 addition & 1 deletion packages/larana/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def setup_dependent_build_environment(self, spack_env, dspec):
spack_env.append_path("FHICL_FILE_PATH", "{0}/fcl".format(self.prefix))
spack_env.append_path("FW_SEARCH_PATH", "{0}/gdml".format(self.prefix))

def setup_dependent_run_environment(self, run_env, dspec):
def setup_run_environment(self, run_env):
# Ensure we can find plugin libraries.
run_env.prepend_path("CET_PLUGIN_PATH", self.prefix.lib)
run_env.prepend_path("PATH", self.prefix.bin)
Expand Down
10 changes: 1 addition & 9 deletions packages/larcore/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,7 @@ def setup_run_environment(self, run_env):
# Cleaup.
sanitize_environments(run_env)

def setup_dependent_build_environment(self, spack_env, dspec):
# Ensure we can find plugin libraries.
spack_env.prepend_path("CET_PLUGIN_PATH", self.prefix.lib)
spack_env.prepend_path("PATH", self.prefix.bin)
spack_env.prepend_path("ROOT_INCLUDE_PATH", self.prefix.include)
spack_env.append_path("FHICL_FILE_PATH", "{0}/fcl".format(self.prefix))
spack_env.append_path("FW_SEARCH_PATH", "{0}/gdml".format(self.prefix))

def setup_dependent_run_environment(self, run_env, dspec):
def setup_run_environment(self, run_env):
# Ensure we can find plugin libraries.
run_env.prepend_path("CET_PLUGIN_PATH", self.prefix.lib)
run_env.prepend_path("PATH", self.prefix.bin)
Expand Down
2 changes: 1 addition & 1 deletion packages/larcorealg/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def setup_dependent_build_environment(self, spack_env, dspec):
spack_env.append_path("FHICL_FILE_PATH", "{0}/fcl".format(self.prefix))
spack_env.append_path("FW_SEARCH_PATH", "{0}/gdml".format(self.prefix))

def setup_dependent_run_environment(self, run_env, dspec):
def setup_run_environment(self, run_env):
run_env.prepend_path("CET_PLUGIN_PATH", self.prefix.lib)
run_env.prepend_path("PATH", self.prefix.bin)
run_env.prepend_path("ROOT_INCLUDE_PATH", self.prefix.include)
Expand Down
2 changes: 1 addition & 1 deletion packages/larcoreobj/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def setup_dependent_build_environment(self, spack_env, dspec):
spack_env.append_path("FHICL_FILE_PATH", "{0}/fcl".format(self.prefix))
spack_env.append_path("FW_SEARCH_PATH", "{0}/gdml".format(self.prefix))

def setup_dependent_run_environment(self, run_env, dspec):
def setup_run_environment(self, run_env):
run_env.prepend_path("CET_PLUGIN_PATH", self.prefix.lib)
run_env.prepend_path("PATH", self.prefix.bin)
run_env.prepend_path("ROOT_INCLUDE_PATH", self.prefix.include)
Expand Down
2 changes: 1 addition & 1 deletion packages/lardata/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def setup_dependent_build_environment(self, spack_env, dspec):
spack_env.append_path("FHICL_FILE_PATH", "{0}/fcl".format(self.prefix))
spack_env.append_path("FW_SEARCH_PATH", "{0}/gdml".format(self.prefix))

def setup_dependent_run_environment(self, run_env, dspec):
def setup_run_environment(self, run_env):
# Ensure we can find plugin libraries.
run_env.prepend_path("CET_PLUGIN_PATH", self.prefix.lib)
run_env.prepend_path("PATH", self.prefix.bin)
Expand Down
2 changes: 1 addition & 1 deletion packages/lardataalg/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def setup_dependent_build_environment(self, spack_env, dspec):
spack_env.append_path("FHICL_FILE_PATH", "{0}/fcl".format(self.prefix))
spack_env.append_path("FW_SEARCH_PATH", "{0}/gdml".format(self.prefix))

def setup_dependent_run_environment(self, run_env, dspec):
def setup_run_environment(self, run_env):
# Ensure we can find plugin libraries.
run_env.prepend_path("CET_PLUGIN_PATH", self.prefix.lib)
run_env.prepend_path("PATH", self.prefix.bin)
Expand Down
2 changes: 1 addition & 1 deletion packages/lardataobj/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def setup_dependent_build_environment(self, spack_env, dspec):
spack_env.append_path("FHICL_FILE_PATH", "{0}/fcl".format(self.prefix))
spack_env.append_path("FW_SEARCH_PATH", "{0}/gdml".format(self.prefix))

def setup_dependent_run_environment(self, run_env, dspec):
def setup_run_environment(self, run_env):
# Ensure we can find plugin libraries.
run_env.prepend_path("CET_PLUGIN_PATH", self.prefix.lib)
run_env.prepend_path("PATH", self.prefix.bin)
Expand Down
2 changes: 1 addition & 1 deletion packages/lareventdisplay/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def setup_dependent_build_environment(self, spack_env, dspec):
spack_env.append_path("FHICL_FILE_PATH", "{0}/fcl".format(self.prefix))
spack_env.append_path("FW_SEARCH_PATH", "{0}/gdml".format(self.prefix))

def setup_dependent_run_environment(self, run_env, dspec):
def setup_run_environment(self, run_env):
# Ensure we can find plugin libraries.
run_env.prepend_path("CET_PLUGIN_PATH", self.prefix.lib)
run_env.prepend_path("PATH", self.prefix.bin)
Expand Down
2 changes: 1 addition & 1 deletion packages/larevt/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def setup_dependent_build_environment(self, spack_env, dspec):
spack_env.append_path("FHICL_FILE_PATH", "{0}/fcl".format(self.prefix))
spack_env.append_path("FW_SEARCH_PATH", "{0}/gdml".format(self.prefix))

def setup_dependent_run_environment(self, run_env, dspec):
def setup_run_environment(self, run_env):
# Ensure we can find plugin libraries.
run_env.prepend_path("CET_PLUGIN_PATH", self.prefix.lib)
run_env.prepend_path("PATH", self.prefix.bin)
Expand Down
2 changes: 1 addition & 1 deletion packages/larexamples/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def setup_dependent_build_environment(self, spack_env, dspec):
spack_env.append_path("FHICL_FILE_PATH", "{0}/fcl".format(self.prefix))
spack_env.append_path("FW_SEARCH_PATH", "{0}/gdml".format(self.prefix))

def setup_dependent_run_nvironment(self, run_env, dspec):
def setup_run_environment(self, run_env):
# Ensure we can find plugin libraries.
run_env.prepend_path("CET_PLUGIN_PATH", self.prefix.lib)
run_env.prepend_path("PATH", self.prefix.bin)
Expand Down
2 changes: 1 addition & 1 deletion packages/larg4/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def setup_dependent_build_environment(self, spack_env, dspec):
spack_env.append_path("FHICL_FILE_PATH", "{0}/fcl".format(self.prefix))
spack_env.append_path("FW_SEARCH_PATH", "{0}/gdml".format(self.prefix))

def setup_dependent_run_environment(self, run_env, dspec):
def setup_run_environment(self, run_env):
# Ensure we can find plugin libraries.
run_env.prepend_path("CET_PLUGIN_PATH", self.prefix.lib)
run_env.prepend_path("PATH", self.prefix.bin)
Expand Down
2 changes: 1 addition & 1 deletion packages/larpandora/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def setup_dependent_build_environment(self, spack_env, dspec):
spack_env.append_path("FW_SEARCH_PATH", "{0}/gdml".format(self.prefix))
spack_env.append_path("FW_SEARCH_PATH", "{0}/fw".format(self.prefix))

def setup_dependent_run_environment(self, run_env, dspec):
def setup_run_environment(self, run_env):
# Ensure we can find plugin libraries.
run_env.prepend_path("CET_PLUGIN_PATH", self.prefix.lib)
run_env.prepend_path("PATH", self.prefix.bin)
Expand Down
6 changes: 6 additions & 0 deletions packages/larpandoracontent/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,9 @@ def cmake_args(self):

def setup_build_environment(self, env):
env.set("CETBUILDTOOLS_VERSION", "cetmodules")

def setup_run_environment(self, run_env):
run_env.prepend_path("PATH", self.prefix.bin)
run_env.prepend_path("ROOT_INCLUDE_PATH", self.prefix.include)
run_env.append_path("CET_PLUGIN_PATH", self.prefix.lib)

2 changes: 1 addition & 1 deletion packages/larreco/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def setup_dependent_build_environment(self, spack_env, dspec):
spack_env.append_path("FW_SEARCH_PATH", "{0}/fw".format(self.prefix))
sanitize_environments(spack_env)

def setup_dependent_run_environment(self, run_env, dspec):
def setup_run_environment(self, run_env):
# Ensure we can find plugin libraries.
run_env.prepend_path("CET_PLUGIN_PATH", self.prefix.lib)
run_env.prepend_path("PATH", self.prefix.bin)
Expand Down
Loading

0 comments on commit c568597

Please sign in to comment.