From 1be9034ebede7be2a35163e71a839e5f1f740b20 Mon Sep 17 00:00:00 2001 From: laggykiller Date: Thu, 6 Jun 2024 02:07:00 +0800 Subject: [PATCH] Add piwheels index during pip download as pyjsparser has no wheels on pypi --- AppImageBuilder-arm64.yml | 2 +- compile.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/AppImageBuilder-arm64.yml b/AppImageBuilder-arm64.yml index 8a241809..48f916ed 100644 --- a/AppImageBuilder-arm64.yml +++ b/AppImageBuilder-arm64.yml @@ -17,7 +17,7 @@ script: # Install pip packages - mkdir wheel - - pip download --python-version=311 --abi=cp311 --platform manylinux2014_aarch64 --only-binary=':all:' -d wheel -r requirements.txt + - pip download --python-version=311 --abi=cp311 --platform manylinux2014_aarch64 --only-binary=':all:' -d wheel -r requirements.txt --extra-index-url https://www.piwheels.org/simple - pip download --python-version=311 --abi=cp311 --platform manylinux2014_aarch64 --only-binary=':all:' -d wheel certifi opencv-python - find ./wheel/*.whl -exec bash -c 'mv $0 ${0/-cp*.whl/-py3-none-any.whl}' {} \; - pip install --ignore-installed --prefix=/usr --root=AppDir ./wheel/* diff --git a/compile.py b/compile.py index f4530cea..028648aa 100755 --- a/compile.py +++ b/compile.py @@ -92,10 +92,10 @@ def osx_install_universal2_dep() -> None: Path("wheel_universal2").mkdir() osx_run_in_venv( - "python -m pip download --require-virtualenv -r requirements.txt --platform macosx_11_0_arm64 --only-binary=:all: -d wheel_arm" + "python -m pip download --require-virtualenv -r requirements.txt --platform macosx_11_0_arm64 --only-binary=:all: -d wheel_arm --extra-index-url https://www.piwheels.org/simple" ) osx_run_in_venv( - "python -m pip download --require-virtualenv -r requirements.txt --platform macosx_11_0_x86_64 --only-binary=:all: -d wheel_x64" + "python -m pip download --require-virtualenv -r requirements.txt --platform macosx_11_0_x86_64 --only-binary=:all: -d wheel_x64 --extra-index-url https://www.piwheels.org/simple" ) create_universal_wheels(