Issue compiling with Nuitka #4127
Replies: 2 comments 5 replies
-
We are unable to accept this issue as a PyMuPDF problem. It obviously cannot be resolved by whatever is in PyMuPDF's reach. |
Beta Was this translation helpful? Give feedback.
-
Among PyMuPDF's Python sources, there exist 2 (very) large files: To compile these to C modules simply takes a long time - how could that ever be changed? PyMuPDF's other Python files however should be compiled via Nuitka. That probably still will take long, but the obvious solution is to do it once only (making a |
Beta Was this translation helpful? Give feedback.
-
Description of the bug
pymupdf.mupdf
fails to compile with nuitka due to the massive c file it generates.I have mentioned this issue to nuitka but maybe you can take a look at it too
Nuitka/Nuitka#3243
How to reproduce the bug
install python 3.9 (tested in other versions and OSes too)
pip install nuitka pymupdf
have a
test.pdf
and a simple code as such in a file for example namedtest_pymupdf.py
:try to compile it with nuitka:
nuitka --mode=app --script-name=test_pymupdf.py
PASS 1 will take an absurdly long time (hour or so)
Then the compilation of the massive c file for mupdf will usually overload github action memory, on a beefy machine it might compile but probably after a few hours
PyMuPDF version
1.25.0
Operating system
Windows
Python version
3.9
Beta Was this translation helpful? Give feedback.
All reactions