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
This commit is contained in:
Xinliang Liu 2021-04-28 02:24:39 +00:00
parent 1355d790ef
commit 6c74417da1

View File

@ -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/