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.
This commit is contained in:
Adriane Boyd 2020-12-04 09:40:03 +01:00 committed by GitHub
parent 63f83e7034
commit 78085fab1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 "