From 987014ea70dddba29782317ff6e5af2bc12f89bb Mon Sep 17 00:00:00 2001 From: brosenberg42 Date: Tue, 25 Jun 2024 09:54:56 -0400 Subject: [PATCH] Restrict version of thinc (#82) --- detection/nlp_text_splitter/pyproject.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/detection/nlp_text_splitter/pyproject.toml b/detection/nlp_text_splitter/pyproject.toml index 0e87735..2dd7a1c 100644 --- a/detection/nlp_text_splitter/pyproject.toml +++ b/detection/nlp_text_splitter/pyproject.toml @@ -33,5 +33,9 @@ name = "nlp_text_splitter" version = "9.0" dependencies = [ "spacy>=3.7.4", - "wtpsplit>=1.3.0" + "wtpsplit>=1.3.0", + # Starting with version 8.2.5, thinc will try to compile C extensions during install. + # Restricting the version of thinc is easier than installing a C compiler in every component + # Dockerfile that uses the text splitter. + "thinc>=8.2.2,<8.2.5" ]