Skip to content

Commit

Permalink
Merge pull request #73 from nudded/346-check-loaded-modules
Browse files Browse the repository at this point in the history
add check for SOFTROOT keys in environ
  • Loading branch information
itkovian committed Aug 10, 2012
2 parents da296a2 + 9ddefcd commit 6a50b80
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions easybuild/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,11 @@ def main():
if options.strict:
filetools.strictness = options.strict

# Check if any modules are loaded which could influence the build process
bad_keys = ["$%s" % key for key in os.environ if key.startswith("SOFTROOT")]
if bad_keys:
log.error("You have some easybuild modules loaded: %s are set in your environment" % bad_keys)

if options.job:
submit_build_job(log)
log.info("submitted job, exiting now")
Expand Down

0 comments on commit 6a50b80

Please sign in to comment.