From 197dde2e89922674dbcea0e9ce35e6ed36efa8ec Mon Sep 17 00:00:00 2001 From: renaud gaudin Date: Mon, 31 Jul 2023 11:27:17 +0000 Subject: [PATCH] using nightly with hack for aarch64 --- .github/workflows/test.yml | 2 +- .github/workflows/wheels.yml | 2 +- setup.py | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 122b82d7..2ddb6ae3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,7 +2,7 @@ name: test on: [push] env: - LIBZIM_DL_VERSION: "8.2.1" + LIBZIM_DL_VERSION: "2023-08-01" jobs: lint: diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 6d990a3f..b0eb0ca5 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -7,7 +7,7 @@ on: - main env: - LIBZIM_DL_VERSION: "8.2.1" + LIBZIM_DL_VERSION: "2023-08-01" MACOSX_DEPLOYMENT_TARGET: "11.0" CIBW_ENVIRONMENT_PASS_LINUX: "LIBZIM_DL_VERSION" CIBW_BUILD_VERBOSITY: "3" diff --git a/setup.py b/setup.py index d8a92d29..67c35a3c 100755 --- a/setup.py +++ b/setup.py @@ -197,6 +197,9 @@ def _download_and_extract(self, filename: str) -> pathlib.Path: source_url = "http://download.openzim.org/release/libzim" if self.is_nightly: source_url = f"http://download.openzim.org/nightly/{self.libzim_dl_version}" + # temp hack + if self.arch == "aarch64" and self.platform == "Linux" and not self.is_musl: + source_url = "http://tmp.kiwix.org/ci" url = f"{source_url}/{fpath.name}" # download a local copy if none present