On Fri, Jan 06, 2023 at 10:42:11AM +0100, Marc Espie wrote: > On Wed, Jan 04, 2023 at 09:22:35PM +0000, Klemens Nanni wrote: > > net/qbittorrent uses python with MODPY_BUILDDEP=No MODPY_TESTDEP=No. > > I've switched it to cmake and the way its Makefile.inc is now means that > > lang/python comes before devel/cmake in MODULES. > > > > I expected this to work without further tweaks since python is just RDEP > > but turns out the module still sets do-build and do-install, so cmake > > loses unless I manually define it first (and explain with a comment).
For what's worth, cmake's option to build Python modules, as extensions of C/C++ libraries, is getting more and more popular - with "proper" Python packaging continuing to be a mess (with deprecated and to be dropped in Python 3.12 distutils, badly documented setuptools, variety of other options such as meson(-python), python-build, poetry, etc...) Dima