Skip to content

Commit

Permalink
Try collecting lxml submodules separately
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewThe committed Dec 15, 2023
1 parent 6be742c commit 2a43fd5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/gui_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ jobs:
mamba install -c conda-forge nomkl
mamba install -c conda-forge numpy scipy pandas networkx pyqt pyinstaller=6.1.0 bottleneck toml threadpoolctl
mamba install -c bioconda mokapot triqler
- name: Collect submodules
run: |
mamba run python import_lxml.py
- name: Build exe and compress with UPX
shell: bash -el {0}
run: |
Expand Down
7 changes: 7 additions & 0 deletions import_lxml.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import PyInstaller.utils.hooks

print("Trying to collect submodules for lxml")
PyInstaller.utils.hooks.collect_submodules('lxml')
print("Trying to collect submodules for lxml.isoschematron")
PyInstaller.utils.hooks._collect_submodules('lxml.isoschematron', 'warn once')
print("Success??")

0 comments on commit 2a43fd5

Please sign in to comment.