summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/gams/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/gams/package.py')
-rw-r--r--var/spack/repos/builtin/packages/gams/package.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/gams/package.py b/var/spack/repos/builtin/packages/gams/package.py
index c900c6aad8..e7e652f381 100644
--- a/var/spack/repos/builtin/packages/gams/package.py
+++ b/var/spack/repos/builtin/packages/gams/package.py
@@ -1,4 +1,4 @@
-# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
@@ -20,10 +20,9 @@ class Gams(Package):
def url_for_version(self, version):
return "file://{0}/linux_x64_64_sfx.exe".format(os.getcwd())
- def setup_environment(self, spack_env, run_env):
- run_env.prepend_path("PATH", join_path(self.prefix,
- 'gams{0}_linux_x64_64_sfx'
- .format(self.version)))
+ def setup_run_environment(self, env):
+ env.prepend_path("PATH", join_path(
+ self.prefix, 'gams{0}_linux_x64_64_sfx'.format(self.version)))
def install(self, spec, prefix):
os.chmod(join_path(self.stage.source_path,