Skip to content

Commit

Permalink
Fixed #172: platform only checked if downloading
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaudin committed Sep 12, 2023
1 parent b893d2a commit faccfbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

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

## Removed

Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ def get_download_filename(self, arch: Optional[str] = None) -> str:

def download_to_dest(self):
"""download expected libzim binary into libzim/ and libzim/include/ folders"""
self.check_platform()
if self.wants_universal:
folders = {}
for arch in self.supported_platforms["Darwin"]:
Expand Down Expand Up @@ -474,7 +475,6 @@ def finalize_options(self):
...

def run(self):
config.check_platform()
config.download_to_dest()


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

setup(
Expand Down

0 comments on commit faccfbe

Please sign in to comment.