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
(cherry picked from commit 6c74417da1)
This commit is contained in:
committed by
Riccardo Pittau
parent
d7bd1141cf
commit
20a2ac931e
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user