From 5cf343d5cd973e1f2bc697c04b60081d5c7cf490 Mon Sep 17 00:00:00 2001 From: Anurag Singh Date: Sat, 31 Oct 2026 18:34:07 +0530 Subject: [PATCH] Pin architecture-specific wheels for extractcode and libmagic The 16.5.210531 and 3.5.1.210531 extractcode releases publish only x86_64 and Windows wheels, and 5.39.210531 does the same for typecode-libmagic. The 16.5.210525 and 3.5.1.210525 releases publish only arm64 and aarch64 wheels, so a single pin cannot work on both architectures and docker compose build fails on Apple Silicon. Select the arm64 pins with platform markers and keep the existing x86_64/Windows pins for every other machine. Signed-off-by: Anurag Singh --- requirements-dev.txt | 11 ++++++++--- requirements.txt | 11 ++++++++--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 78cfafa37..acf79a398 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -43,8 +43,11 @@ drf-spectacular==0.24.2 drf-spectacular-sidecar==2022.10.1 executing==2.2.1 extractcode==31.0.0 -extractcode-7z==16.5.210531 -extractcode-libarchive==3.5.1.210531 +# Platform-specific wheels: .210525 builds arm64/aarch64, .210531 builds x86_64/Windows +extractcode-7z==16.5.210525; platform_machine == "arm64" or platform_machine == "aarch64" +extractcode-7z==16.5.210531; platform_machine != "arm64" and platform_machine != "aarch64" +extractcode-libarchive==3.5.1.210525; platform_machine == "arm64" or platform_machine == "aarch64" +extractcode-libarchive==3.5.1.210531; platform_machine != "arm64" and platform_machine != "aarch64" fetchcode==0.8.2 flot==0.7.3 freezegun==1.2.1 @@ -151,7 +154,9 @@ tomli==2.4.0 traitlets==5.14.3 twine==6.2.0 typecode==30.2.0 -typecode-libmagic==5.39.210531 +# Platform-specific wheels: .210223 builds arm64/aarch64, .210531 builds x86_64/Windows +typecode-libmagic==5.39.210223; platform_machine == "arm64" or platform_machine == "aarch64" +typecode-libmagic==5.39.210531; platform_machine != "arm64" and platform_machine != "aarch64" typing_extensions==4.13.0 tzlocal==5.3.1 tzdata==2026.5 diff --git a/requirements.txt b/requirements.txt index a00d8935f..b7707df88 100644 --- a/requirements.txt +++ b/requirements.txt @@ -31,8 +31,11 @@ djangorestframework==3.15.2 drf-spectacular==0.24.2 drf-spectacular-sidecar==2022.10.1 extractcode==31.0.0 -extractcode-7z==16.5.210531 -extractcode-libarchive==3.5.1.210531 +# Platform-specific wheels: .210525 builds arm64/aarch64, .210531 builds x86_64/Windows +extractcode-7z==16.5.210525; platform_machine == "arm64" or platform_machine == "aarch64" +extractcode-7z==16.5.210531; platform_machine != "arm64" and platform_machine != "aarch64" +extractcode-libarchive==3.5.1.210525; platform_machine == "arm64" or platform_machine == "aarch64" +extractcode-libarchive==3.5.1.210531; platform_machine != "arm64" and platform_machine != "aarch64" fetchcode==0.8.2 freezegun==1.2.1 fusepy==3.0.1 @@ -78,7 +81,9 @@ text-unidecode==1.3 texttable==1.6.4 toml==0.10.2 typecode==30.2.0 -typecode-libmagic==5.39.210531 +# Platform-specific wheels: .210223 builds arm64/aarch64, .210531 builds x86_64/Windows +typecode-libmagic==5.39.210223; platform_machine == "arm64" or platform_machine == "aarch64" +typecode-libmagic==5.39.210531; platform_machine != "arm64" and platform_machine != "aarch64" typing_extensions==4.13.0 tzlocal==5.3.1 tzdata==2026.5