-
Notifications
You must be signed in to change notification settings - Fork 496
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
Support for nix-darwin #1709
Comments
I don't use MacOS and i don't know what nix-darwin is, so i might be making some basic mistakes here. PyMuPDF wheels come with MuPDF already linked in, and MacOS wheels for the latest release, PyMuPDF-1.20.0, are on pypi.org for use by pip. Are these MacOS wheels suitable for your system? If suitable wheels are not available, pip will install by building from an sdist. As of PyMuPDF-1.20.0, the sdist will contain source for mupdf which will be built into pymupdf automatically. Does this behaviour work for you? Finally if you install directly from a git checkout of PyMuPDF with If you want to prevent the default use of the hard-coded mupdf, you should build with PYMUPDF_SETUP_MUPDF_BUILD set to an empty string. E.g. Currently there is no way to override these defaults. But it should be possible to add support for new environmental variables that force particular include path, library path and library names. Alternatively you could modify |
Closing this because no response for 8 weeks. |
Sorry for the delay on this - I got sidetracked with other things. Thanks very much for your reply, I tried modifying |
Welcome back. I think to make progress here, i'll need you to post the following:
|
Hi @julian-smith-artifex-com @G3zz, I give a solution which works for me on macOS Apple Chip (this manner works for Intel too) in #2012 . Hope it helps ! |
MacOS/ARM wheels have been available since PyMuPDF-1.21.0, released 2022-11-8. |
Is your feature request related to a problem? Please describe.
It is not possible to use
pymupdf
installed via pip with a mupdf installed throughnix-darwin
without creating symlinks to mupdf outside of the nix store.Describe the solution you'd like
The ability for
setup.py
ondarwin
to check for the existence of nix-darwin and scan the nix store for the installed mupdf binaries. I suppose this could be something as simple as using an environment variable.Describe alternatives you've considered
It is possible to to install pymupdf through nix packages too, but this is not ideal for co-working with colleagues who do not use nix.
The text was updated successfully, but these errors were encountered: