[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Opencascade python bindings



Hi Roland,

On Wed, Jun 04, 2025 at 04:24:32PM +0200, Roland Mas wrote:
> Hi Kurt, Tobias, list,
> 
> I'm working on packaging cadquery, which uses Python bindings for
> opencascade; these come as OCP, which uses "pywrap", and both of those
> include full copies of the opencascade source code. I'm struggling with
> packaging them on their own, and I'm wondering if it would make sense to
> have them in the opencascade source package instead, with extra components
> for OCP and pywrap (expunged from the full opencascade source code).
> 
> Do you mind if I start investigating how to do that? It would obviously be
> in a separate branch while it stabilizes.
> 

(as written on IRC), doing a brief research on cadquery [1],
it seems that it used "OCP" [2] as python wrapper. This one
seems to embed opencascade headers as conveience copy.

[1] https://github.com/CadQuery/cadquery
[2] https://github.com/CadQuery/OCP

Frankly, I'm not fond of the idea to include unrelated upstream
projects into opencascade, and putting OCP into opencascade would
be some kind of "reverse vendoring", and also complicates the already
complicated opencascade package, It would entangles it, so to speak
and make it harder to move them independently. There are issues filed
on [2] that indicates that OCP breaks with newer opencascade versions,
and knowing opencascade this will happen likely in the future too.
OCP seems to be driven mostly by one developer and there are quite a few
issues / MR upstream that are not tackled, so I fear that this will be
lots of extra effort to maintain it.

So in short, I don't think this is a good idea, and IMHO the correct
(Debian) way to package cadquery will be to package it and OCP
seperatly, using the packaged version of opencascade.

If the opencascade package needs some changes to facilitate that,
(for example if there are some headers that are currently not
installed or something like that) please feel free to file a bug against
src:opencascade and I'll try to figure out what can be done.

(Another approach could be that CadQuery tries to upstream the python
wrapper, then it could be integrated into the opencascade packaging.)

-- 
Cheers,
tobi

> Thanks,
> 
> Roland.
> 
> 

Attachment: signature.asc
Description: PGP signature


Reply to: