mgis, tfel: add explicit dependency to py-numpy (#28502)

This commit is contained in:
Thomas Helfer 2022-01-19 10:57:13 +01:00 committed by GitHub
parent 3dccb913a9
commit 8da204de61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -62,7 +62,10 @@ class Mgis(CMakePackage):
depends_on('tfel@rliv-3.3', when="@rliv-1.1")
depends_on('tfel@rliv-3.2', when="@rliv-1.0")
depends_on('tfel@master', when="@master")
depends_on('boost+python+numpy', when='+python')
depends_on('boost+python+numpy', when='+python',
type=('build', 'link', 'run'))
depends_on('py-numpy', when='+python',
type=('build', 'link', 'run'))
extends('python', when='+python')
def patch(self):

View File

@ -128,6 +128,8 @@ class Tfel(CMakePackage):
type=('build', 'link', 'run'))
depends_on('python', when='+python_bindings',
type=('build', 'link', 'run'))
depends_on('py-numpy', when='+python_bindings',
type=('build', 'link', 'run'))
# As boost+py has py runtime dependency, boost+py needs types link and run as well:
depends_on('boost+python+numpy', when='+python_bindings',
type=('build', 'link', 'run'))