Skip to content

Commit

Permalink
Install lxml when creating X-Ray file with system Python
Browse files Browse the repository at this point in the history
Get Wikipedia section text now also requires `lxml`
  • Loading branch information
xxyzz committed Dec 4, 2022
1 parent 117d064 commit 3ad53d5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,7 @@ def install_deps(model: str, book_fmt: str | None, notif: Any) -> None:
if ismacos and platform.machine() == "arm64":
pip_install("thinc-apple-ops", dep_versions["thinc-apple-ops"], notif=notif)
if USE_SYSTEM_PYTHON:
from .config import prefs

if book_fmt == "EPUB" or prefs["fandom"]:
pip_install("lxml", dep_versions["lxml"], notif=notif)
pip_install("lxml", dep_versions["lxml"], notif=notif)


def which_python(use_system_python: bool = False) -> tuple[str, str]:
Expand Down

0 comments on commit 3ad53d5

Please sign in to comment.