Install all Python packages needed by the pdf-factory skill and verify they work.
$ARGUMENTS
If --pip is passed as an argument, use pip install --break-system-packages instead of the default installer.
Steps
-
Run installer script:
python3 ${SKILL_ROOT}/../pdf-factory/scripts/install_deps.py -
Verify imports:
python3 -c " import xhtml2pdf import reportlab import pypdf import markdown import lxml from PIL import Image import html5lib import cssselect2 print('All 9 core dependencies verified successfully.') " -
Check optional packages:
python3 -c " try: import pyhanko print('pyhanko (PDF signing): available') except ImportError: print('pyhanko (PDF signing): not available (optional)') try: import bidi print('python-bidi (RTL text): available') except ImportError: print('python-bidi (RTL text): not available (optional)') " -
Report results with a summary of what was installed and verified.