Skip to content

Commit 141bef0

Browse files
committed
Fixed #205: only require delocate on Windows
1 parent b2a4e38 commit 141bef0

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10-
- n/a
10+
### Changed
11+
12+
- `delocate` dependency only required on Windows platform
1113

1214
## [3.5.0]
1315

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = [
33
"setuptools == 74.1.1",
44
"wheel == 0.44.0",
55
"cython == 3.0.11",
6-
"delocate==0.11.0",
6+
"delocate == 0.11.0 ; platform_system=='Windows'",
77
]
88
build-backend = "setuptools.build_meta"
99

@@ -70,7 +70,7 @@ build = [
7070
"setuptools == 74.1.1",
7171
"wheel == 0.44.0",
7272
"cython == 3.0.11",
73-
"delocate==0.11.0",
73+
"delocate == 0.11.0 ; platform_system=='Windows'",
7474
]
7575
dev = [
7676
"pre-commit==3.8.0",

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
from Cython.Build import cythonize
2929
from Cython.Distutils.build_ext import new_build_ext as build_ext
30-
from delocate.wheeltools import InWheel
3130
from setuptools import Command, Extension, setup
3231

3332

@@ -350,6 +349,8 @@ def repair_windows_wheel(self, wheel: Path, dest_dir: Path):
350349
"""opens windows wheels in target folder and moves all DLLs files inside
351350
subdirectories of the wheel to the root one (where wrapper is expected)"""
352351

352+
from delocate.wheeltools import InWheel
353+
353354
# we're only interested in windows wheels
354355
if not re.match(r"libzim-.+-win_.+", wheel.stem):
355356
return

0 commit comments

Comments
 (0)