Skip to content

Commit 8865edc

Browse files
committed
Dependencies: Install pandas and DuckDB on x86_64 (linux/amd64) only
There are no wheels on PyPI to satisfy builds for the Docker platforms `linux/arm64` and `linux/arm/v7`.
1 parent 2bda452 commit 8865edc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ COPY . /app
1212

1313
# Install package
1414
WORKDIR /app
15-
RUN pip install .
15+
RUN pip install --prefer-binary .

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
here = os.path.abspath(os.path.dirname(__file__))
77
README = open(os.path.join(here, "README.rst")).read()
88

9+
no_linux_on_arm = "platform_system != 'Linux' or (platform_machine != 'armv7l' and platform_machine != 'aarch64')"
10+
911
requires = [
1012
# Core
1113
"six",
@@ -14,8 +16,8 @@
1416
"munch>=2.5.0,<3",
1517
"tqdm>=4.60.0,<5",
1618
# Filtering
17-
"pandas<1.6",
18-
"duckdb<0.8",
19+
f"pandas<1.6; {no_linux_on_arm}",
20+
f"duckdb<0.8; {no_linux_on_arm}",
1921
# Grafana
2022
"requests>=2.23.0,<3",
2123
"grafana-client>=2.1.0,<4",

0 commit comments

Comments
 (0)