-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[Qt6][Sip] Correctly retrieve PyQt module directory #57218
Conversation
Would it be possible to have this relative to |
Regarding this particular modification, I would say no. This is a system path targeting an already installed dependency, not shipped with/by QGIS.
I think I remember the issue you describe, and yes we should rely on relative path when dealing with py install dir
Maybe. On Windows I imagine that the situation is more simple than on Debian and there is only one Python install dir so it's less needed. Unfortunately I'm not (yet) skilled enough to make and test the vcpkg modification. I failed to go till the end of the build process last time we try 😬 |
Makes sense
Thanks for confirming👍
If you do
This is a simple patch that can be applied to building QGIS unrelated to vcpkg |
Sorry, I think I get your point now. You mean modify SIPMacros.cmake to install QGIS in the same Python_SIteSearch that PyQt? Because in the actual state, QGIS python would be installed in one of the valid Python_SiteSearch. So, it should work (not tested though). But If you do think it's better, I can make the modification |
I think this should be merged as is 👍 (it's about where to find the existing installation and not where to install the results to). For the future, I'd like to change the behavior and find a solution for the install/prefix path.
|
OK, I also added the modification for PyQt5, to stay consistent
I don't have a complete picture on how QGIS is working when installing but, we should install everything with relative path! this way, it would always be relative to CMAKE_INSTALL_PREFIX, this one being either a system_prefix (default to /usr/local on linux for instance) or a given |
unrelated test failure |
@m-kuhn Do you mind merging ? |
On Debian testing Python_SiteSearch is in
/usr/local/lib/python3.11
while PyQt6 has been installed in/usr/lib/python3/dist-packages
. This PR propose a more robust way to retrieve module directory