From e5d90abe38390c9e457eb3531ac645970292a666 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Sun, 3 Sep 2023 22:13:34 +0200 Subject: [PATCH] Dependencies: Explicitly use NumPy 1.26.0b1 on Python 3.12 --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 616a0f4..e0948c9 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, "README.rst")).read() -no_linux_on_arm = "platform_system != 'Linux' or (platform_machine != 'armv7l' and platform_machine != 'aarch64')" +no_linux_on_arm = "(platform_system != 'Linux' or (platform_machine != 'armv7l' and platform_machine != 'aarch64'))" requires = [ # Core @@ -16,6 +16,8 @@ "munch>=2.5.0,<5", "tqdm>=4.60.0,<5", # Filtering + f"numpy; {no_linux_on_arm} and python_version<'3.12.0rc1'" + f"numpy>=1.26.0b1; {no_linux_on_arm} and python_version>='3.12.0.rc1'", f"pandas<2.1; {no_linux_on_arm}", f"duckdb<0.9; {no_linux_on_arm}", # Grafana