Skip to content

Commit

Permalink
Manually include VARC table module in pyinstaller modules
Browse files Browse the repository at this point in the history
fontTools only imports this module with __import__, that’s why it’s not
automatically found.
  • Loading branch information
liZe committed May 27, 2024
1 parent 19709f5 commit 9ea4d85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/exe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
echo "C:\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH
rm C:\msys64\mingw64\bin\python.exe
- name: Install requirements
run: python -m pip install . pyinstaller "fonttools==4.51.0"
run: python -m pip install . pyinstaller
- name: Generate executable
run: python -m PyInstaller weasyprint/__main__.py -n weasyprint -F
run: python -m PyInstaller weasyprint/__main__.py -n weasyprint -F --hidden-import "fontTools.ttLib.tables.V_A_R_C_"
- name: Test executable
run: dist/weasyprint --info
- name: Store executable
Expand Down

0 comments on commit 9ea4d85

Please sign in to comment.