From 78085fab1fba273ed8048c385a8927f2a6535bdc Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Fri, 4 Dec 2020 09:40:03 +0100 Subject: [PATCH] Check for spacy-nightly package in download (#6502) Also check for spacy-nightly in download so that `--no-deps` isn't set for normal nightly 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 0e7ec2ea5..d5686586b 100644 --- a/spacy/cli/download.py +++ b/spacy/cli/download.py @@ -35,7 +35,7 @@ def download_cli( def download(model: str, direct: bool = False, *pip_args) -> None: - if not is_package("spacy") and "--no-deps" not in pip_args: + if not (is_package("spacy") or is_package("spacy-nightly")) and "--no-deps" not in pip_args: msg.warn( "Skipping pipeline package dependencies and setting `--no-deps`. " "You don't seem to have the spaCy package itself installed "