Skip to content

pythonPackages.pyqt5: upgrade and solve qml issue - #65836

Merged
FRidh merged 8 commits into
NixOS:masterfrom
FRidh:pyqt
Aug 3, 2019
Merged

FRidh merged 8 commits into
NixOS:masterfrom
FRidh:pyqt

Conversation

@FRidh

@FRidh FRidh commented Aug 3, 2019 •

Copy link
Copy Markdown
Member
Motivation for this change

This PR upgrades .pyqt5 and .pyqtwebengine and fixes their build. During build-time many Qt modules were not detected and thus not included in the build. Apparently they also need to be added to nativeBuildInputs. I suppose this is because of qmake?

Anyway, both packages work fine when using with python3.withPackages.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Notify maintainers

cc @

@FRidh FRidh added 6.topic: python Python is a high-level, general-purpose programming language. 2.status: work-in-progress 6.topic: qt/kde Object-oriented framework for GUI creation labels Aug 3, 2019
@ofborg ofborg Bot added 8.has: package (new) This PR adds a new package and removed 6.topic: qt/kde Object-oriented framework for GUI creation labels Aug 3, 2019
@ofborg
ofborg Bot requested review from jagajaga, lovek323 and svanderburg August 3, 2019 10:14
@ofborg ofborg Bot added 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. labels Aug 3, 2019
@FRidh

FRidh commented Aug 3, 2019

Copy link
Copy Markdown
Member Author

Qutebrowser now runs without the error. However, there is a regression in PyQt5.sip for Python 2 it seems.

@FRidh

FRidh commented Aug 3, 2019

Copy link
Copy Markdown
Member Author

I can imagine we can have collisions with sip as well because for each variant we create sipconfig.py at the same location.

Robert Schütz and others added 6 commits August 3, 2019 14:19
This upgrades pyqt5 and fixes the build. Note that the QtWebEngine
module is split into `pyqtwebengine` by upstream and us.

If your application gives an error that a Qt module is missing, then
that is most likely because it was not included when building pyqt5.
The solution is to simply add it here to the `(native)BuildInputs`.
Don't forget to add an import check. We should include all the modules
(except qtwebkit) that are needed.
5.13.0 is available, however, it assumes qt 5.13 is used and fails
to build due to a missing QWebEngineNotification class.
@FRidh

FRidh commented Aug 3, 2019 •

Copy link
Copy Markdown
Member Author

qgis and calibre don't build yet, but I leave that for someone else (or at least another day).

@FRidh

FRidh commented Aug 3, 2019

Copy link
Copy Markdown
Member Author

@GrahamcOfBorg build picard qutebrowser anki python3Packages.spyder

@ofborg
ofborg Bot requested review from Profpatsch, gebner and the-kenny August 3, 2019 12:34
@ghost

ghost commented Aug 3, 2019

Copy link
Copy Markdown

Great news that this is finally figured out 🎉
I built and ran qutebrowser successfully, so that's good
I am wondering if adding the target dependencies to nativeBuildInputs really is the right thing, it detected qml just fine before, so what broke it?

@FRidh

FRidh commented Aug 3, 2019

Copy link
Copy Markdown
Member Author

I am wondering if adding the target dependencies to nativeBuildInputs really is the right thing, it detected qml just fine before, so what broke it?

Yes, I don't like it either. Maybe strictDeps = true;? I have not checked it.

@FRidh
FRidh merged commit 33a876e into NixOS:master Aug 3, 2019
@FRidh
FRidh deleted the pyqt branch August 3, 2019 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant