From 6c74417da132d73b129cc58f83da694171df2832 Mon Sep 17 00:00:00 2001 From: Xinliang Liu Date: Wed, 28 Apr 2021 02:24:39 +0000 Subject: [PATCH] Fix build error on aarch64 Fix "error: invalid command 'bdist_wheel'" when building on aarch64. For aarch64 platform, it seems it always tries to build wheels first for python packages which have no wheels in PyPi. Although it will install the source packages successfully at last. Task: #41701 Story: #2008562 Change-Id: Id3dc4eaad9b698241ad70a69f93b8463bc15de0d --- .../60-ironic-python-agent-ramdisk-install | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dib/ironic-python-agent-ramdisk/install.d/ironic-python-agent-ramdisk-source-install/60-ironic-python-agent-ramdisk-install b/dib/ironic-python-agent-ramdisk/install.d/ironic-python-agent-ramdisk-source-install/60-ironic-python-agent-ramdisk-install index 2f4a451..f2ad8cd 100755 --- a/dib/ironic-python-agent-ramdisk/install.d/ironic-python-agent-ramdisk-source-install/60-ironic-python-agent-ramdisk-install +++ b/dib/ironic-python-agent-ramdisk/install.d/ironic-python-agent-ramdisk-source-install/60-ironic-python-agent-ramdisk-install @@ -56,6 +56,13 @@ if [ "$DISTRO_NAME" == "opensuse" ] || [ $IPA_PYTHON_VERSION == 2 ]; then $VENVDIR/bin/pip install -U setuptools fi +# For aarch64 platform, it seems it always tries to build wheels first for +# python packages which have no wheels in PyPi. Although it will install the +# source packages successfully at last. +if [[ "$ARCH" =~ (arm64|aarch64) ]]; then + $VENVDIR/bin/pip install wheel +fi + # install IPA inside the virtual environment $VENVDIR/bin/pip install -c $UPPER_CONSTRAINTS $IPADIR ln -s $VENVDIR/bin/ironic-python-agent /usr/local/bin/