summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJen Herting <jen@herting.cc>2021-12-22 22:29:08 -0500
committerGitHub <noreply@github.com>2021-12-22 20:29:08 -0700
commitcb5d53e5a9864b4014d91d21f8a49433a3575538 (patch)
treec92ac8ac3f5405d7fb511056de5503fabc321ff3
parentb5ba20ada44321c3162e9286de092f2f925bcc52 (diff)
downloadspack-cb5d53e5a9864b4014d91d21f8a49433a3575538.tar.gz
spack-cb5d53e5a9864b4014d91d21f8a49433a3575538.tar.bz2
spack-cb5d53e5a9864b4014d91d21f8a49433a3575538.tar.xz
spack-cb5d53e5a9864b4014d91d21f8a49433a3575538.zip
New package: py-qpth (#28047)
Co-authored-by: Doug Heckman <dahdco@rit.edu>
-rw-r--r--var/spack/repos/builtin/packages/py-qpth/package.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-qpth/package.py b/var/spack/repos/builtin/packages/py-qpth/package.py
new file mode 100644
index 0000000000..a8c54f91e5
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-qpth/package.py
@@ -0,0 +1,21 @@
+# Copyright 2013-2021 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 import *
+
+
+class PyQpth(PythonPackage):
+ """A fast and differentiable QP solver for PyTorch"""
+
+ homepage = "https://github.com/locuslab/qpth"
+ pypi = "qpth/qpth-0.0.15.tar.gz"
+
+ version('0.0.15', sha256='99d8ec5a35877c18543875a7d5b7fc9af1fa9a4d4b0888011c1ecf42ad9d521c')
+
+ depends_on('python', type=('build', 'run'))
+ depends_on('py-setuptools', type='build')
+ depends_on('py-numpy@1')
+ depends_on('py-torch')
+ depends_on('py-cvxpy')