Skip to content

Commit 470f538

Browse files
authored
Merge pull request #173 from openzim/deb
platform only checked if downloading
2 parents b893d2a + faccfbe commit 470f538

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414
### Changed
1515

1616
- Build with (and target) libzim 8.2.1
17+
- Fixed setup checking download platform even when using own libzim (not downloading)
1718

1819
## Removed
1920

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ def get_download_filename(self, arch: Optional[str] = None) -> str:
149149

150150
def download_to_dest(self):
151151
"""download expected libzim binary into libzim/ and libzim/include/ folders"""
152+
self.check_platform()
152153
if self.wants_universal:
153154
folders = {}
154155
for arch in self.supported_platforms["Darwin"]:
@@ -474,7 +475,6 @@ def finalize_options(self):
474475
...
475476

476477
def run(self):
477-
config.check_platform()
478478
config.download_to_dest()
479479

480480

@@ -494,7 +494,6 @@ def run(self):
494494
if len(sys.argv) == 2 and sys.argv[1] in config.buildless_commands:
495495
ext_modules = None
496496
else:
497-
config.check_platform()
498497
ext_modules = get_cython_extension()
499498

500499
setup(

0 commit comments

Comments
 (0)