py-cvxopt: refine dependency @1.1.9 and update version to @1.2.5 (#19385)

* refine dependency @1.1.9 and update version to @1.2.5

* refine depends_on() for python
This commit is contained in:
darmac 2020-10-21 23:22:26 +08:00 committed by GitHub
parent 640d1a0034
commit 1a57787686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,7 @@ class PyCvxopt(PythonPackage):
import_modules = ['cvxopt']
version('1.2.5', sha256='94ec8c36bd6628a11de9014346692daeeef99b3b7bae28cef30c7490bbcb2d72')
version('1.1.9', sha256='8f157e7397158812cabd340b68546f1baa55a486ed0aad8bc26877593dc2983d')
variant('gsl', default=False, description='Use GSL random number generators for constructing random matrices')
@ -24,7 +25,8 @@ class PyCvxopt(PythonPackage):
variant('dsdp', default=False, description='Enable support for the semidefinite programming solver DSDP')
# Required dependencies
depends_on('python@2.7:')
depends_on('python@2.7:', type=('build', 'link', 'run'))
depends_on('python@2.7:3.7.999', type=('build', 'link', 'run'), when='@:1.1.9')
depends_on('py-setuptools', type='build')
depends_on('blas')
depends_on('lapack')