diff options
-rw-r--r-- | var/spack/repos/builtin/packages/py-azureml-dataprep-rslex/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-azureml-dataprep-rslex/package.py b/var/spack/repos/builtin/packages/py-azureml-dataprep-rslex/package.py index c40dc5c005..bb18b6ce47 100644 --- a/var/spack/repos/builtin/packages/py-azureml-dataprep-rslex/package.py +++ b/var/spack/repos/builtin/packages/py-azureml-dataprep-rslex/package.py @@ -4,6 +4,7 @@ # SPDX-License-Identifier: (Apache-2.0 OR MIT) import sys +import archspec from spack import * @@ -68,6 +69,10 @@ class PyAzuremlDataprepRslex(Package): depends_on('python@3.6.0:3.6.999', when='@1.9.0-py3.6,1.8.0-py3.6', type=('build', 'run')) depends_on('python@3.5.0:3.5.999', when='@1.9.0-py3.5,1.8.0-py3.5', type=('build', '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-azureml-dataprep-rslex is available x86_64 only') + def install(self, spec, prefix): pip = which('pip') pip('install', self.stage.archive_file, '--prefix={0}'.format(prefix)) |