diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/ampl/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/ampl/package.py | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/var/spack/repos/builtin/packages/ampl/package.py b/var/spack/repos/builtin/packages/ampl/package.py index 6e59a7e964..ed2eed2051 100644 --- a/var/spack/repos/builtin/packages/ampl/package.py +++ b/var/spack/repos/builtin/packages/ampl/package.py @@ -17,39 +17,39 @@ class Ampl(Package): homepage = "https://ampl.com/" manual_download = True - maintainers = ['robgics'] + maintainers = ["robgics"] # Use the version as you would expect the user to know it, not necessarily the # version as it appears in the file name. To get the checksum, use sha256sum. - version('20210226', sha256='d9ffaed591c0491e311a44c2b246d9d81785f6c0b2747a7e32a783e522e18450') - version('20190529', sha256='c35a87d85055ae5fe41b68d4b4458f1fdbf80643890501eeaad35b134cb11a2d') + version("20210226", sha256="d9ffaed591c0491e311a44c2b246d9d81785f6c0b2747a7e32a783e522e18450") + version("20190529", sha256="c35a87d85055ae5fe41b68d4b4458f1fdbf80643890501eeaad35b134cb11a2d") # Licensing license_required = True - license_comment = '#' - license_files = ['ampl.lic'] - license_url = 'https://ampl.com/resources/floating-licenses/installation/' + license_comment = "#" + license_files = ["ampl.lic"] + license_url = "https://ampl.com/resources/floating-licenses/installation/" resource( - name='amplapi', - url='file://{0}/amplapi-linux64.2.0.0.zip'.format(os.getcwd()), - sha256='a4abe111f142b862f11fcd8700f964b688d5d2291e9e055f6e7adbd92b0e243a', - destination='', - placement='amplapi' + name="amplapi", + url="file://{0}/amplapi-linux64.2.0.0.zip".format(os.getcwd()), + sha256="a4abe111f142b862f11fcd8700f964b688d5d2291e9e055f6e7adbd92b0e243a", + destination="", + placement="amplapi", ) resource( - name='amplide', - url='file://{0}/amplide-linux64.3.5.tgz'.format(os.getcwd()), - sha256='c2163896df672b71901d2e46cd5cf1c1c4f0451e478ef32d0971705aaf86d6ac', - destination='', - placement='amplide' + name="amplide", + url="file://{0}/amplide-linux64.3.5.tgz".format(os.getcwd()), + sha256="c2163896df672b71901d2e46cd5cf1c1c4f0451e478ef32d0971705aaf86d6ac", + destination="", + placement="amplide", ) resource( - name='ampl_lic', - url='file://{0}/ampl_lic.linux-intel64.20210618.tgz'.format(os.getcwd()), - sha256='f5c38638d6cc99c85e0d6de001722b64a03e2adeaf5aed9ed622401654d9ff33', - destination='', - placement='' + name="ampl_lic", + url="file://{0}/ampl_lic.linux-intel64.20210618.tgz".format(os.getcwd()), + sha256="f5c38638d6cc99c85e0d6de001722b64a03e2adeaf5aed9ed622401654d9ff33", + destination="", + placement="", ) def url_for_version(self, version): @@ -57,13 +57,13 @@ class Ampl(Package): def setup_run_environment(self, env): env.prepend_path("PATH", self.prefix) - env.prepend_path("PATH", join_path(self.prefix, 'amplide')) + env.prepend_path("PATH", join_path(self.prefix, "amplide")) def install(self, spec, prefix): - install_tree('.', prefix) + install_tree(".", prefix) for key in self.resources: for res in self.resources[key]: - if res.name == 'ampl_lic': + if res.name == "ampl_lic": res_path = join_path(res.fetcher.stage.source_path, res.name) install(res_path, prefix) |