From 515c2394c43a1df896b15632a99c418303994616 Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Wed, 24 May 2023 16:53:32 +0200 Subject: [PATCH] Remove #egg from download URLs The current URLs will become invalid in pip 25.0. According to the pip docs, the egg= URLs are currently only needed for editable VCS installs. --- spacy/cli/download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/cli/download.py b/spacy/cli/download.py index 4ea9a8f0e..e2bb17ef7 100644 --- a/spacy/cli/download.py +++ b/spacy/cli/download.py @@ -50,7 +50,7 @@ def download(model: str, direct: bool = False, sdist: bool = False, *pip_args) - ) pip_args = pip_args + ("--no-deps",) suffix = SDIST_SUFFIX if sdist else WHEEL_SUFFIX - dl_tpl = "{m}-{v}/{m}-{v}{s}#egg={m}=={v}" + dl_tpl = "{m}-{v}/{m}-{v}{s}" if direct: components = model.split("-") model_name = "".join(components[:-1])