-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
pythonPackages.pyqt5: fix sip dependency #52613
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
Conversation
@@ -65,6 +65,8 @@ in buildPythonPackage { | |||
''; | |||
|
|||
postInstall = '' | |||
ln -s ${sip}/${python.sitePackages}/sip.pyi $out/${python.sitePackages}/PyQt5 | |||
ln -s ${sip}/${python.sitePackages}/sip.so $out/${python.sitePackages}/PyQt5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replace .so
with ${stdenv.hostPlatform.extensions.sharedLibrary}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done 👍
093a322
to
e5f164e
Compare
@GrahamcOfBorg eval |
1 similar comment
@GrahamcOfBorg eval |
@GrahamcOfBorg build python2.pkgs.pyqt5 python3.pkgs.pyqt5 |
e5f164e
to
05cf0e1
Compare
Sorry I had to rewrite it a bit. I first tried to skip the module rename by only linking to the library but this wasn't enough. I didn't try to find side effects of this name changing though |
@GrahamcOfBorg build python2.pkgs.pyqt5 python3.pkgs.pyqt5 |
@GrahamcOfBorg build calibre |
The qtwebkit failures on darwin and aarch64 are unrelated and handled in #51846. Thanks for the fix! |
I wonder if |
This broke |
It seems that |
Possible fix: #52897 |
PyQt5 5.11 wants a copy of sip in PyQt5.sip to ensure that sip-generated PyQt5 modules have the correct sip runtime version. This issue is not relevant to Nixpkgs, therefore PyQt5 may be reverted to use the common sip runtime. This is an alternative to NixOS#52613 that does not break packages that need to import sip. Fixes the build of tortoisehg.
Motivation for this change
Related to the discution in #49400
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)