From 49265d16321db427aecab7d805230442b4f87135 Mon Sep 17 00:00:00 2001 From: mattip Date: Mon, 17 Feb 2020 14:22:58 +0200 Subject: [PATCH] BLD: manylinux2010 docker reports machine=i686 --- tools/openblas_support.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/openblas_support.py b/tools/openblas_support.py index add6a2ecd7c6..cee76022ffc3 100644 --- a/tools/openblas_support.py +++ b/tools/openblas_support.py @@ -23,12 +23,12 @@ def get_arch(): ret = 'windows' elif platform.system() == 'Darwin': ret = 'darwin' - elif 'x86' in platform.uname().machine: - # What do 32 bit machines report? - # If they are a docker, they report x86_64 - ret = 'x86' else: ret = platform.uname().machine + # What do 32 bit machines report? + # If they are a docker, they report x86_64 or i686 + if 'x86' in ret or ret == 'i686': + ret = 'x86' assert ret in ARCHITECTURES return ret