On 11/4/22 10:15, Karel Zak wrote:
On Wed, Apr 06, 2022 at 04:24:34PM +0200, Jose M. Guisado wrote:
Hi, recently I've started working on python bindings for libfdisk. Just
a C extension for CPython, like the libmount python bindings.
Early WIP can be found at https://github.com/pvxe/python-libfdisk/
After reading the mailing list archive and previous github issues
related to python bindings, I'm wondering if patches would be accepted,
or python bindings are preferred separate from the util-linux tree.
Frankly, I'm not sure if adding bindings to the project is good.
We already have libmount there, and it is terrible. It is not up to
date with the original libmount library, it requires some additional
stuff in the build system, extra dependencies, etc., and I have no
time to fix it. (So, my long-term plan is to mark it as obsolete and
remove it from the project.)
That's the reason why libsmartcols python binding has been maintained
out of the tree, and it would be probably better also for libfdisk.
Makes sense. :-)
If you plan to maintain the python binding, we can help you propagate
your project (in util-linux Release Notes, docs, ...).
That would be my intention, bindings are still in a very early stage of
development but the moment they are in some more usable shape I would
let you know.
Thank you for your time Karel.