Skip to content

Commit

Permalink
removed temp hack
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaudin committed Sep 1, 2023
1 parent 7b8791f commit c47c998
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,6 @@ 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
Expand Down Expand Up @@ -260,7 +257,7 @@ def _install_from(self, folder: pathlib.Path):
)

def cleanup(self):
""" removes created files to prevent re-run issues"""
"""removes created files to prevent re-run issues"""
# we downloaded libzim, so we must remove it
if self.download_libzim:
print("removing downloaded libraries")
Expand All @@ -271,7 +268,6 @@ def cleanup(self):
print("removing downloaded headers")
shutil.rmtree(self.header_file.parent, ignore_errors=True)


@property
def header_file(self) -> pathlib.Path:
return self.base_dir / "include" / "zim" / "zim.h"
Expand Down

0 comments on commit c47c998

Please sign in to comment.