From ce0d48d2d3a05aae497723169b4f6024fe04d0af Mon Sep 17 00:00:00 2001 From: Brian Rosenberg Date: Tue, 25 Jun 2024 07:30:43 -0400 Subject: [PATCH] Restrict version of thinc --- 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" ]