Repository navigation
Conversation
Signed-off-by: odidev <odidev@puresoftware.com>
|
+1 |
1 similar comment
|
+1 |
|
Until this gets merged, here's how I generate wheels locally: Save the following as #!/bin/bash
# Builds a wheel for qdldl
set -eu # Stop script if a line fails
QDLDL_VERSION=${1}
echo "Building qdldl==$QDLDL_VERSION"
# numpy is in "install_requires" of qdldl - perhaps we don't need to install oldest-supported-numpy that is typically
# recommended for build requirements. https://numpy.org/devdocs/dev/depending_on_numpy.html#build-time-dependency
# However we install it here to be conservative, instead of just relying on the latest version.
python3 -m pip install oldest-supported-numpy
git clone --recurse-submodules https://github.com/osqp/qdldl-python --depth=1 --branch v$QDLDL_VERSION
pushd qdldl-python
mkdir dist
# Using constraints.txt might not be necessary if the package specifies build requirements correctly
# However, I prefer to be conservative here and end up with loud errors, rather than generate packages
# that have compatibility issues.
python3 -m pip freeze > constraints.txt
python3 -m pip wheel --constraint constraints.txt --wheel-dir=./dist .
for wheel in dist/qdldl*; do
auditwheel repair $wheel # Inject solver's shared libraries to wheel
done
for wheel in wheelhouse/*.whl; do
cp -rf $wheel /wheels/ # Copy repaired wheel to shared volume
done
popd
popdand then run from within that folder: export PYTHON_BIN=/opt/python/cp311-cp311/bin/python
export QDLDL_VERSION=0.1.5.post3
docker run -v $(pwd):/wheels --rm --platform=linux/aarch64 quay.io/pypa/manylinux_2_28_aarch64 /bin/bash -c "\
ln -s ${PYTHON_BIN} /bin/python3 && \
bash /wheels/build-qdldl-wheel.sh ${QDLDL_VERSION}"The generated wheel should appear in the folder the above command was executed from. |
robertodr
approved these changes
Oct 5, 2023
Member
|
aarch64 linux wheels are now available on PyPi after the recent refactor of the CI pipelines. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added linux aarch64 wheel build support.
Related to #17, @bstellato Could you please review this PR?