diff options
author | h-denpo <57649496+h-denpo@users.noreply.github.com> | 2021-03-02 12:39:56 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-02 03:39:56 +0000 |
commit | 83ca1b153f9e8a2057c464d96181059391f6acba (patch) | |
tree | 7ebcd8302950a7ba62740bf2b43cc4c4b667275c /var | |
parent | 671878740c72ee74884ed079b286cc4c3390d2da (diff) | |
download | spack-83ca1b153f9e8a2057c464d96181059391f6acba.tar.gz spack-83ca1b153f9e8a2057c464d96181059391f6acba.tar.bz2 spack-83ca1b153f9e8a2057c464d96181059391f6acba.tar.xz spack-83ca1b153f9e8a2057c464d96181059391f6acba.zip |
py-azureml-dataprep-rslex: install only x86_64 (#22033)
* py-azureml-dataprep-rslex: install only x86_64
* py-azureml-dataprep-rslex: Moved the conflit part.
Diffstat (limited to 'var')
-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)) |