Skip to content

Commit 7f9365f

Browse files
authored
fix: force numpy < 2.0.0 on mac intel (#69)
Signed-off-by: Michele Dolfi <[email protected]>
1 parent b1f9af1 commit 7f9365f

File tree

2 files changed

+52
-5
lines changed

2 files changed

+52
-5
lines changed

poetry.lock

Lines changed: 48 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ python = "^3.9"
2525
torch = "^2.2.2"
2626
torchvision = "^0"
2727
transformers = "^4.42.0"
28-
numpy = ">=1.24.4,<3.0.0"
28+
numpy = [
29+
{ version = ">=1.24.4,<3.0.0", markers = 'sys_platform != "darwin" or platform_machine != "x86_64"' },
30+
{ version = ">=1.24.4,<2.0.0", markers = 'sys_platform == "darwin" and platform_machine == "x86_64"' },
31+
]
2932
jsonlines = "^3.1.0"
3033
Pillow = "^10.0.0"
3134
tqdm = "^4.64.0"

0 commit comments

Comments
 (0)