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
pikepdf 5.1.0 and macports: appears to require a homebrew install? #322
Comments
What's the proper way to ask macports if it's installed and where to look for libraries/include headers? |
The default prefix for MacPorts is MacPorts itself adds appropriate |
Is there any environment variable that says "this is a Macports build environment"? I could extend to generally say "if we are being built by a package manager, they know what they are doing, so don't do anything special to discover missing dependencies". |
Sure, I understand that, and it's fine to try to discover where things are if you haven't been told explicitly.
No environment variable specifically. There are a number of telltale signs (like the path of the build directory), but nothing that is guaranteed not to change. Usually if a package needs to care whether it's being built by MacPorts or not, that would mean that MacPorts isn't doing its job well enough.
That sounds like a better approach, though it could equally apply to users who know what they are doing as well as package managers. Some variable or flag that says "this is where qpdf is located, no need to search for it" would be very helpful. |
For the record, MacPorts has patched out the Homebrew specific code. I first patched it to replace the path with the correct one. See: macports/macports-ports@d5f5499 However, @ryandesign pointed out that this path is redundant, and I subsequently entirely removed the elseif section. |
Fixed in 5.1.1 |
The current macports version is 5.1.0 but (AFAICT) on an ARM MacBook Pro, building 5.1.0 fails because
setup.py
assumes that there's a homebrew install present.MacPorts install log snippet:
setup.py snippet (what happens if there is no
/opt/homebrew
?)with the error happening here (setup.py line 35):
The text was updated successfully, but these errors were encountered: