diff options
author | Sangu Mbekelu <60823467+sm2939@users.noreply.github.com> | 2023-02-10 14:23:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-10 11:23:19 -0800 |
commit | 1f7c59eb06c99e296d0005c1279bed3830e1e5e2 (patch) | |
tree | 4763d0e4b3830d36ab15d63ca9a55a7e90a288cf /var | |
parent | e1341d70ced626031cbf775283a976672adb2c57 (diff) | |
download | spack-1f7c59eb06c99e296d0005c1279bed3830e1e5e2.tar.gz spack-1f7c59eb06c99e296d0005c1279bed3830e1e5e2.tar.bz2 spack-1f7c59eb06c99e296d0005c1279bed3830e1e5e2.tar.xz spack-1f7c59eb06c99e296d0005c1279bed3830e1e5e2.zip |
new py-amplpy package (#35359)
* new py-amplpy package
* [@spackbot] updating style on behalf of sm2939
* Update package.py
* Rename var/spack/repos/builtin/py-amplpy/package.py to var/spack/repos/builtin/packages/py-amplpy/package.py
* Edited file to change copyright year/dependencies and changed the directory of the file
---------
Co-authored-by: Sangu Mbekelu <s.mbekelu9@gmail.com>
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-amplpy/package.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-amplpy/package.py b/var/spack/repos/builtin/packages/py-amplpy/package.py new file mode 100644 index 0000000000..f5254b57cd --- /dev/null +++ b/var/spack/repos/builtin/packages/py-amplpy/package.py @@ -0,0 +1,25 @@ +# Copyright 2013-2023 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) + + +from spack.package import * + + +class PyAmplpy(PythonPackage): + """AMPL API is an interface that allows developers to access the features of + the AMPL interpreter from within a programming language. All model generation + and solver interaction is handled directly by AMPL, which leads to great + stability and speed; the library just acts as an intermediary, and the + added overhead (in terms of memory and CPU usage) depends mostly on how + much data is read back from AMPL, the size of the model as such is irrelevant.""" + + homepage = "https://ampl.com/" + pypi = "amplpy/amplpy-0.8.6.tar.gz" + + version("0.8.6", sha256="ad0945d69f75e7762802bb54849009717fbcf226a6da6f37b539d9534bdcf68d") + + depends_on("py-future@0.15.0:", type=("build", "run")) + depends_on("py-ampltools@0.4.5:", type=("build", "run")) + depends_on("py-setuptools", type="build") |