py-itk: fix dependencies (#27164)

This commit is contained in:
Ben Darwin 2021-11-05 17:26:18 -04:00 committed by GitHub
parent c5be548046
commit 12429bda35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,12 +95,11 @@ class PyItk(Package):
depends_on('python@3.8.0:3.8', when='@5.1.1-cp38,5.1.2-cp38', type=('build', 'run'))
depends_on('python@3.9.0:3.9', when='@5.1.2-cp39', type=('build', 'run'))
depends_on('itk@5.1.1', when='@5.1.1-cp35:5.1.1-cp39', type='run')
depends_on('itk@5.1.2', when='@5.1.2-cp35:5.1.2-cp39', type='run')
depends_on('py-setuptools', type='run')
for t in set([str(x.family) for x in archspec.cpu.TARGETS.values()
if str(x.family) != 'x86_64']):
conflicts('target={0}:'.format(t), msg='py-itk is available x86_64 only')
conflicts('target={0}:'.format(t), msg='py-itk is available for x86_64 only')
def install(self, spec, prefix):
pip = which('pip')