[krita] [Bug 415743] FindSIP.py fails to find sip starting from version 5

2021-08-03 Thread Dmitry Kazakov
https://bugs.kde.org/show_bug.cgi?id=415743

Dmitry Kazakov  changed:

   What|Removed |Added

  Latest Commit|https://invent.kde.org/grap |https://invent.kde.org/grap
   |hics/krita/commit/5bb4874ad |hics/krita/commit/b263b5668
   |04b771a0fec12827de748780b5b |0f575a51bc9b6d9bb47070f3c15
   |395b|32f1

--- Comment #11 from Dmitry Kazakov  ---
Git commit b263b56680f575a51bc9b6d9bb47070f3c1532f1 by Dmitry Kazakov, on
behalf of L. E. Segovia.
Committed on 03/08/2021 at 08:35.
Pushed by dkazakov into branch 'krita/4.3'.

Add support for SIP v5 bindings

SIP v5 and above rely on a PEP-0518 based tooling system to build
bindings (usually distutils). v4, as our currently supported generator,
is only a dummy tool -- it relies on the user to compile and link the
bindings.

This commit adds support for SIP v5.

- I've added a "sip-generate" tool, that differs from the standard
sip-build in that it only generates the binding glue; this relies on a
private, undocumented method of the sipbuild.Builder class.

- The cmake/modules directory now has a pyproject.toml skeleton
manifest, which is processed by the new add_sip_python_module_v5 macro.
It works identically to the v4 macro, but targets the sip-generate tool.
Compilation happens in the exact same was as we do with v4.

Key remarks:

- All the data must be now injected in the skeleton manifest (as opposed
to build flags in v4).
- SIP v5 makes use of protected Qt methods; for this reason, it supplies
a "protected-as-public" override, which I emulate in the
add_sip_python_module_v5 macro.
- Like v4, v5 also needs to be told the fully qualified name of the SIP
package (e.g. `import PyQt5.sip` -- PyQt5.sip is the value). Otherwise,
the native library will not find the package and the initialization will
fail.
- The initialization function changes, from "PyInit_pykrita" to
"PyInit_krita" (the innermost module name). This has been macro'd for
backwards compatibility.

CCMAIL: kimages...@kde.org
(cherry picked from commit 5bb4874ad04b771a0fec12827de748780b5b395b)

M  +8-3cmake/modules/FindPyQt5.cmake
M  +9-3cmake/modules/FindPyQt5.py
M  +3-3cmake/modules/FindSIP.cmake
M  +42   -12   cmake/modules/FindSIP.py
M  +103  -6cmake/modules/SIPMacros.cmake
A  +15   -0cmake/modules/pyproject.toml.in
A  +24   -0cmake/modules/sip-generate.py
M  +5-6plugins/extensions/pykrita/plugin/PykritaModule.cpp
M  +11   -3plugins/extensions/pykrita/plugin/PykritaModule.h
M  +4-1plugins/extensions/pykrita/plugin/config.h.cmake
M  +5-4plugins/extensions/pykrita/plugin/utilities.cpp
M  +33   -25   plugins/extensions/pykrita/sip/CMakeLists.txt

https://invent.kde.org/graphics/krita/commit/b263b56680f575a51bc9b6d9bb47070f3c1532f1

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 415743] FindSIP.py fails to find sip starting from version 5

2021-06-15 Thread amyspark
https://bugs.kde.org/show_bug.cgi?id=415743

amyspark  changed:

   What|Removed |Added

  Latest Commit||https://invent.kde.org/grap
   ||hics/krita/commit/5bb4874ad
   ||04b771a0fec12827de748780b5b
   ||395b
 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #10 from amyspark  ---
Git commit 5bb4874ad04b771a0fec12827de748780b5b395b by L. E. Segovia.
Committed on 23/05/2021 at 02:34.
Pushed by lsegovia into branch 'master'.

Add support for SIP v5 bindings

SIP v5 and above rely on a PEP-0518 based tooling system to build
bindings (usually distutils). v4, as our currently supported generator,
is only a dummy tool -- it relies on the user to compile and link the
bindings.

This commit adds support for SIP v5.

- I've added a "sip-generate" tool, that differs from the standard
sip-build in that it only generates the binding glue; this relies on a
private, undocumented method of the sipbuild.Builder class.

- The cmake/modules directory now has a pyproject.toml skeleton
manifest, which is processed by the new add_sip_python_module_v5 macro.
It works identically to the v4 macro, but targets the sip-generate tool.
Compilation happens in the exact same was as we do with v4.

Key remarks:

- All the data must be now injected in the skeleton manifest (as opposed
to build flags in v4).
- SIP v5 makes use of protected Qt methods; for this reason, it supplies
a "protected-as-public" override, which I emulate in the
add_sip_python_module_v5 macro.
- Like v4, v5 also needs to be told the fully qualified name of the SIP
package (e.g. `import PyQt5.sip` -- PyQt5.sip is the value). Otherwise,
the native library will not find the package and the initialization will
fail.
- The initialization function changes, from "PyInit_pykrita" to
"PyInit_krita" (the innermost module name). This has been macro'd for
backwards compatibility.

CCMAIL: kimages...@kde.org

M  +5-0cmake/modules/FindPyQt5.cmake
M  +5-0cmake/modules/FindPyQt5.py
M  +3-3cmake/modules/FindSIP.cmake
M  +7-4cmake/modules/FindSIP.py
M  +103  -6cmake/modules/SIPMacros.cmake
A  +15   -0cmake/modules/pyproject.toml.in
A  +24   -0cmake/modules/sip-generate.py
M  +2-3plugins/extensions/pykrita/plugin/PykritaModule.cpp
M  +9-1plugins/extensions/pykrita/plugin/PykritaModule.h
M  +3-0plugins/extensions/pykrita/plugin/config.h.cmake
M  +3-2plugins/extensions/pykrita/plugin/utilities.cpp
M  +33   -25   plugins/extensions/pykrita/sip/CMakeLists.txt

https://invent.kde.org/graphics/krita/commit/5bb4874ad04b771a0fec12827de748780b5b395b

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 415743] FindSIP.py fails to find sip starting from version 5

2021-06-01 Thread amyspark
https://bugs.kde.org/show_bug.cgi?id=415743

amyspark  changed:

   What|Removed |Added

 Status|CONFIRMED   |ASSIGNED
URL||https://invent.kde.org/grap
   ||hics/krita/-/merge_requests
   ||/869

--- Comment #9 from amyspark  ---
Assigning to myself, MR in progress in the attached URL.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 415743] FindSIP.py fails to find sip starting from version 5

2021-04-01 Thread amyspark
https://bugs.kde.org/show_bug.cgi?id=415743

--- Comment #8 from amyspark  ---
Additionally to the porting to SIPv5 itself, we need to move to MSVC first
because of the setuptools based toolchain that it now uses.

Please see https://invent.kde.org/graphics/krita/-/merge_requests/776 for
progress on that front.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 415743] FindSIP.py fails to find sip starting from version 5

2021-02-19 Thread amyspark
https://bugs.kde.org/show_bug.cgi?id=415743

amyspark  changed:

   What|Removed |Added

 CC||a...@amyspark.me
   Assignee|krita-bugs-n...@kde.org |a...@amyspark.me

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 415743] FindSIP.py fails to find sip starting from version 5

2020-05-09 Thread Boudewijn Rempt
https://bugs.kde.org/show_bug.cgi?id=415743

Boudewijn Rempt  changed:

   What|Removed |Added

 Status|REPORTED|CONFIRMED
 Ever confirmed|0   |1

--- Comment #7 from Boudewijn Rempt  ---
Yes... And since Qt 5.14 turned out to be a big heap of smelly poo, we won't be
updating our build system to that any time soon. I'm so sick and tired of
having to port, port, port and never see any improvement in return :-(

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 415743] FindSIP.py fails to find sip starting from version 5

2020-05-09 Thread Antonio Rojas
https://bugs.kde.org/show_bug.cgi?id=415743

Antonio Rojas  changed:

   What|Removed |Added

 Status|NEEDSINFO   |REPORTED
 Resolution|WAITINGFORINFO  |---

--- Comment #6 from Antonio Rojas  ---
Yes, nothing has changed with respect to this. SIP 5 support requires major
porting

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 415743] FindSIP.py fails to find sip starting from version 5

2020-05-08 Thread Bug Janitor Service
https://bugs.kde.org/show_bug.cgi?id=415743

--- Comment #5 from Bug Janitor Service  ---
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 415743] FindSIP.py fails to find sip starting from version 5

2020-04-24 Thread wolthera
https://bugs.kde.org/show_bug.cgi?id=415743

wolthera  changed:

   What|Removed |Added

 Resolution|--- |WAITINGFORINFO
 CC||griffinval...@gmail.com
 Status|REPORTED|NEEDSINFO

--- Comment #4 from wolthera  ---
Is this still relevant? We've been poking at python and the build system a lot,
so maybe it changed?

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 415743] FindSIP.py fails to find sip starting from version 5

2020-01-16 Thread Antonio Rojas
https://bugs.kde.org/show_bug.cgi?id=415743

Antonio Rojas  changed:

   What|Removed |Added

 CC||aro...@archlinux.org

--- Comment #3 from Antonio Rojas  ---
Note that the patch is only to make krita compatible with PyQt5 when the latter
has been compiled with sip 5. It does *not* add support for compiling krita
itself with sip 5. Luckily, sip 4 and sip 5 are coinstallable (for now).

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 415743] FindSIP.py fails to find sip starting from version 5

2020-01-16 Thread Boudewijn Rempt
https://bugs.kde.org/show_bug.cgi?id=415743

--- Comment #2 from Boudewijn Rempt  ---
A related patches from Arch:

https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/krita=16a7baeefe30a8dd151efefb83c857d16cbe1ec4

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 415743] FindSIP.py fails to find sip starting from version 5

2019-12-31 Thread Boudewijn Rempt
https://bugs.kde.org/show_bug.cgi?id=415743

Boudewijn Rempt  changed:

   What|Removed |Added

 CC||b...@valdyas.org

--- Comment #1 from Boudewijn Rempt  ---
We'll only update to a newer version of sip when we're updating to Qt 5.14,
which should happen some time this month. Until then, please use sip 4.19.

-- 
You are receiving this mail because:
You are watching all bug changes.