Bug#972566: python3-opencv: build python extensions for all supported python versions

2022-11-19 Thread Victor Westerhuis
Package: python3-opencv
Followup-For: Bug #972566

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

With the addition of Python 3.11 as a supported version, it became
easier for me to try this.

I have created a patch and opened a merge request on Salsa:
https://salsa.debian.org/science-team/opencv/-/merge_requests/3

Regards,

Victor Westerhuis

-BEGIN PGP SIGNATURE-

iQJHBAEBCAAxFiEE6OxII3T+o0Ujs6ECQz2Rq5dHQPsFAmN5Dd8THHZpY3RvckB3
ZXN0ZXJodS5pcwAKCRBDPZGrl0dA+zvPEACg8BGXXuB0NmNJuO8GatN0l4VkceiI
s8+vSPMeZCwxfLSXrrCbjumdTrNI7KuiUvs2q2NCGZdqPxYPY+K/pb+SkMpN7bev
LXmAJyDWhimP3k7A8p/4isN/7V2UWVnDrgYa8xrgG/M7Gkd92k9Xb54eX6HTzamh
U9VftxqtGm4dNBJJYDt/KND4YA2PRp9lnRRdFagdmzrosdDSVZhI5AK/Ll+XKYOL
bCakGXTHTws+oyUzGiVyDL2AW1yH06uBDMIB8bBDTbsV2fGvivgqP2UiKMpVUKNS
Y9134m+FiYC2gTs0L1H0VDGZyMdfm8s5jboRzHqLM/Z7lk1NnhZwExuWu6vfnX8g
UvN+xo78/AfGkKEf/a2AmANm/yWs6oPm36hIg59Ur+6I41NRsYFbU9RXWcMRvlem
//BliPvaEdTHbsjIv9P+IkGA1q+fK4IpHvZL4CDsemf4+T0zJEOt4zkt7e+XR2Wf
zyPoRQkw5Uv8XgCvrVqbe7OKoN1eKwcctxjhBmtjpe1b3k99bCz4wK6UsIkPdg0M
wVEFdtoJKmhMs4gifj2RgxitK3RaJQHP1HkuZA8IIbmwVcfsJaWkHdZu4cIh5vOu
2C/ue2FU7IvQUnFQWMgbPR97dPNMVmYfQecdkbOqIVd68VVscjd5NkJEIdlVXHdK
k0CMYMhghrva1w==
=2UPQ
-END PGP SIGNATURE-



Bug#972566: python3-opencv: build python extensions for all supported python versions

2020-10-20 Thread Jochen Sprickerhof

Hi Drew,

* Drew Parsons  [2020-10-20 20:10]:
Not as simple as "Build-Depends: python3-all-dev", then.  Not built by 
pybuild.


pybuild has cmake support, you can set it using PYBUILD_SYSTEM=cmake. 
See ros-ros-comm for an example.


Ping me if you need help with it.

Cheers Jochen


signature.asc
Description: PGP signature


Bug#972566: python3-opencv: build python extensions for all supported python versions

2020-10-20 Thread Drew Parsons
Not as simple as "Build-Depends: python3-all-dev", then.  Not built by 
pybuild.


dolfin uses cmake, but only for the C++ libs. It provides a separate 
setup.py for its python modules. So it's not going to help us.


Will have to think about it. An interesting challenge.

Drew



On 2020-10-20 19:54, Mo Zhou wrote:

Hi Drew,

Thanks for the report. python3-opencv is built using cmake. I have no
idea on the way of enabling multiple python3 builds for the current
cmake build system.

On Tue, Oct 20, 2020 at 07:40:44PM +0800, Drew Parsons wrote:


Currently python3-opencv only builds python extensions
...for the default version of python (python3.8 at the moment).

It would be nice if the extension module could be built for all
supported pythons (python3.9 is now in the archive).





Bug#972566: python3-opencv: build python extensions for all supported python versions

2020-10-20 Thread Mo Zhou
Hi Drew,

Thanks for the report. python3-opencv is built using cmake. I have no
idea on the way of enabling multiple python3 builds for the current
cmake build system.

On Tue, Oct 20, 2020 at 07:40:44PM +0800, Drew Parsons wrote:
> Package: python3-opencv
> Version: 4.2.0+dfsg-6+b4
> Severity: normal
> 
> Currently python3-opencv only builds python extensions
> (/usr/lib/python3/dist-packages/cv2.cpython-38-x86_64-linux-gnu.so)
> for the default version of python (python3.8 at the moment).
> 
> It would be nice if the extension module could be built for all
> supported pythons (python3.9 is now in the archive).
> 
> Currently opencv Build-Depends: python3-dev, hence only builds against
> the default python.
> 
> Will the other python versions be built automatically if that is updated to
>  Build-Depends: python3-all-dev   ?
> 
> -- 
> debian-science-maintainers mailing list
> debian-science-maintain...@alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers



Bug#972566: python3-opencv: build python extensions for all supported python versions

2020-10-20 Thread Drew Parsons
Package: python3-opencv
Version: 4.2.0+dfsg-6+b4
Severity: normal

Currently python3-opencv only builds python extensions
(/usr/lib/python3/dist-packages/cv2.cpython-38-x86_64-linux-gnu.so)
for the default version of python (python3.8 at the moment).

It would be nice if the extension module could be built for all
supported pythons (python3.9 is now in the archive).

Currently opencv Build-Depends: python3-dev, hence only builds against
the default python.

Will the other python versions be built automatically if that is updated to
 Build-Depends: python3-all-dev   ?