Skip to content

Commit 441f99a

Browse files
committed
account for missing aarch64-bionic
1 parent 7ce7d42 commit 441f99a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

setup.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ def get_download_filename(self, arch: Optional[str] = None) -> str:
141141
if self.platform == "Linux":
142142
variant = "-musl" if self.is_musl else "-bionic"
143143

144+
# TODO: remove once fixed online
145+
if arch == "aarch64":
146+
variant = "" # will allow build but fail repair and tests
147+
144148
return pathlib.Path(
145149
f"libzim_{lzplatform}-{arch}{variant}-{self.libzim_dl_version}.tar.gz"
146150
).name
@@ -195,9 +199,8 @@ def _download_and_extract(self, filename: str) -> pathlib.Path:
195199
source_url = "http://download.openzim.org/release/libzim"
196200
if self.is_nightly:
197201
source_url = f"http://download.openzim.org/nightly/{self.libzim_dl_version}"
198-
# TODO: remove after 2023-04-20
199-
if "bionic" in fpath.name and "x86_64" in fpath.name:
200-
source_url = "https://tmp.kiwix.org/ci/libzim_bionic"
202+
# TODO: remove once merged
203+
source_url = "https://tmp.kiwix.org/ci/libzim_bionic"
201204
url = f"{source_url}/{fpath.name}"
202205

203206
# download a local copy if none present

0 commit comments

Comments
 (0)