Install all Python packages needed by the epub-creator skill and verify they work.
$ARGUMENTS
If --pip is passed as an argument, use pip install instead of uv pip install.
Steps
-
Determine installer: Use
uv pip installby default. If$ARGUMENTScontains--pip, usepip installinstead. -
Install dependencies:
uv pip install ebooklib markdown Pillow beautifulsoup4 lxml PyYAML -
Verify imports:
python3 -c " import ebooklib import markdown from PIL import Image from bs4 import BeautifulSoup import lxml import yaml print('All 6 dependencies verified successfully.') " -
Check for optional epubcheck:
if command -v epubcheck &>/dev/null; then echo "epubcheck is available: $(epubcheck --version 2>&1 | head -1)" else echo "Optional: epubcheck not found. Install via 'brew install epubcheck' for EPUB validation." fi -
Report results with a summary of what was installed and verified.