-
Notifications
You must be signed in to change notification settings - Fork 608
Would you accept a PR for automatic macOS and Linux wheel generation? #149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Updated initial comment because I found a straightforward way to make manylinux1 wheels too. |
Hi there, I am not the repo owner, but I am sure @rk700 will have no objections either! My skills on non-Windows systems is too low to contribute much - except maybe testing any new installlation procedure on Linux virtual machines (Oracle Virtual Box). |
Great! |
@jbarlow83 Thank you so much for the help! Now Travis CI is integrated and the wheels can be built successfully. However it failed when uploading wheels to PyPI: https://travis-ci.org/rk700/PyMuPDF/builds/355674679 I'll take a deeper look at the issue. |
I have one of my projects uploading to legacy PyPI since it saved hassle. May be this will help.
You could change the upload so that non-tagged builds go to PyPI, as a way of confirming things work without having to tag everything, e.g.
|
First of all, thank you very much for your contribution to our repo! A first observation on the generated wheels (whether they have yet been successfully passed on to PyPI or not): they look really big compared to my homegrown Windows wheels: Linux 26.x MB versus less than 3 MB on Windows! My first guess: As you have been so resourceful: would you have an idea on how to force Travis to also use a modified |
You're welcome... I've learned a lot about Travis on a few different projects so it really didn't take that long. Yes, fonts could easily explain the size difference. I should probably explain how it actually works. The So right after this command
...you can patch mupdf any way you see fit, and cibuildwheel will build the modified code the same way for macOS and Linux. I think the easiest option will be to include a copy of install:
- $PIP install cibuildwheel==0.7.0 twine
- mkdir mupdf && wget -q $MUPDF -O - | tar zx -C mupdf --strip-components=1
- cp fitz/_mupdf_config.h mupdf/include/mupdf/fitz/config.h Or you could do a |
I'm interested in switching my project, OCRmyPDF, to PyMuPDF as the PDF backend since it's far superior to PyPDF2 and the other alternatives, and would probably eliminate my dependency on Ghostscript as well.
However, PyMuPDF installation on non-Windows is a bit of a pain right now, ultimately because Artifex doesn't provide shared libraries for MuPDF.
Would you accept a PR that added a Travis CI compile and deploy step to automatically build binary wheels for PyMuPDF? Basically I want to make sure you don't have some philosophical objection or already have work in progress before I spend time on it. Would boil down if, there is a tagged release, installed the appropriate Homebrew packages, generate a binary wheel and upload it to PyPI. The benefit is that this would enable mac users to "pip install pymupdf" without needing homebrew + gcc + mupdf-tools installed.
The text was updated successfully, but these errors were encountered: