mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-22 00:12:09 +03:00
Use prebuild wheel for zxing-cpp
This commit is contained in:
parent
968c9fe978
commit
c306c1c5bb
@ -34,21 +34,15 @@ if [ "$OS" = "macos" ]; then
|
||||
rm -rf $HELPER
|
||||
mkdir -p $HELPER
|
||||
|
||||
# Needed to build zxing-cpp properly
|
||||
export CMAKE_OSX_ARCHITECTURES="arm64;x86_64"
|
||||
|
||||
# Export exact versions
|
||||
poetry export --without-hashes > $HELPER/requirements.txt
|
||||
grep cryptography $HELPER/requirements.txt > $HELPER/cryptography.txt
|
||||
grep cffi $HELPER/requirements.txt > $HELPER/cffi.txt
|
||||
grep pillow $HELPER/requirements.txt > $HELPER/pillow.txt
|
||||
grep zxing-cpp $HELPER/requirements.txt > $HELPER/zxing-cpp.txt
|
||||
# Remove non-universal packages
|
||||
poetry run pip uninstall -y cryptography cffi pillow zxing-cpp
|
||||
poetry run pip uninstall -y cryptography cffi pillow
|
||||
# Build cffi from source to get universal build
|
||||
poetry run pip install --upgrade -r $HELPER/cffi.txt --no-binary cffi
|
||||
# Build zxing-cpp from source to get universal build
|
||||
poetry run pip install --upgrade -r $HELPER/zxing-cpp.txt --no-binary zxing-cpp
|
||||
# Explicitly install pre-build universal build of cryptography
|
||||
poetry run pip download -r $HELPER/cryptography.txt --platform macosx_10_12_universal2 --only-binary :all: --no-deps --dest $HELPER
|
||||
poetry run pip install -r $HELPER/cryptography.txt --no-cache-dir --no-index --find-links $HELPER
|
||||
|
Loading…
Reference in New Issue
Block a user