Draft documentation for Linux system installs #2977
Replies: 7 comments 4 replies
-
Thanks for providing an overview of the build process! I believe pip will not be used by any downstream, but instead, more low-level tooling to cater to a PEP517-style workflow. |
Beta Was this translation helpful? Give feedback.
-
Thanks for this. Yes, i did see that, and i noticed the use of I'll try using |
Beta Was this translation helpful? Give feedback.
-
Hmm. I thought I had shared builds working with mupdf 1.23.7 and PyMuPDF 1.23.8 over the weekend, but mupdf 1.23.8 changed the picture again (as will PyMuPDF 1.23.9). In particular, I'm wondering:
|
Beta Was this translation helpful? Give feedback.
-
Apologies for breaking things.
|
Beta Was this translation helpful? Give feedback.
-
Previously, distro maintainers have said that they want MuPDF and PyMuPDF to use the system's libraries, not MuPDF's internal thirdparty libraries. So for shared installs, MuPDF's Makefile insists that USE_SYSTEM_LIBS is
I guess that the MuPDF people would say that they are more in control of their thirdparty libraries than if they were having to deal with all the variety of libraries that are installed out in the world. And MuPDF is tested only with MuPDF's thirdparty libraries. Building PyMuPDF in a non-standard configuration will sometimes cause some changes to behaviour that we might not want to spend large amounts of time fixing. There's one example of this currently in the test suite - the Having said all of that, i think that lcms2 and freeglut are not used by PyMuPDF. That came out a lot more verbose than i was hoping. I hope it all makes sense. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reassurances. I've added
I don't know much about the specifics of Linux's sonames, but with this change things still work for me in a Linux system install.
Yes, the libraries Hope that helps. |
Beta Was this translation helpful? Give feedback.
-
So, as an update: I seem to have packaging working for Fedora, that is mupdf shared against system libraries (mostly) and PyMuPDF rebased implementation, passing most tests. As for the tests: I get spurious "Fatal Python error: Aborted" in test_insertimage.py and/or test_inserpdf.py on various architectures, but not always. Could this be some kind of reentry/multithread problem with parallel tests or a timing issue? Edit: I noticed that PyMuPDF links against both libmupdf and libmupdfcpp. Is this as intended? |
Beta Was this translation helpful? Give feedback.
-
I have a draft documentation page for Linux system installs, see: https://ghostscript.com/~julian/docs-PyMuPDF/packaging.html
Please let me know if you have any comments or suggestions.
Beta Was this translation helpful? Give feedback.
All reactions