From 5798581f1897483ed1e29e7b3f14fb013b83f03c Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Wed, 15 May 2024 10:17:51 +0200 Subject: [PATCH] Crash on older CPU - Setting LXML version to any version without the known modern-CPU-only CPU flags (#2365 #2328 ) --- requirements.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 8992676f..88f2c3c4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -52,7 +52,10 @@ cryptography~=3.4 beautifulsoup4 # XPath filtering, lxml is required by bs4 anyway, but put it here to be safe. -lxml >=4.8.0,<6 +# #2328 - 5.2.0 and 5.2.1 had extra CPU flag CFLAGS set which was not compatible on older hardware +# It could be advantageous to run its own pypi package here with those performance flags set +# https://bugs.launchpad.net/lxml/+bug/2059910/comments/16 +lxml >=4.8.0,<6,!=5.2.0,!=5.2.1 # XPath 2.0-3.1 support - 4.2.0 broke something? elementpath==4.1.5