Building a python package

61 views
Skip to first unread message

Daniele Nicolodi

unread,
Nov 27, 2020, 4:24:24 AM11/27/20
to The Meson Build System
Hello,

the Meson python module works very well to compile Python extensions,
however, I am not sure how to use Meson or integrate it with setuptools
to install a complete python package composed by one or more extensions
and some Python modules. The python_installation.install_sources() does
not seem to be a complete solution.

I think it would be great if Meson could be plugged into the stanrdard
setuptools machinery with an Extension class that uses meson to compile
the extension instead than setuptools. I heard on #mesonbuild that there
may be someone working on something like this, IIUC. What's the status
of this work? I may look into implementing this myself, but I am not
familiar with the internals of Meson nor setuptools, thus it may take a
while.

Thank you.

Cheers,
Daniele

Jussi Pakkanen

unread,
Dec 2, 2020, 3:11:07 PM12/2/20
to Daniele Nicolodi, The Meson Build System
On Fri, 27 Nov 2020 at 11:24, Daniele Nicolodi <dan...@grinta.net> wrote:

> I think it would be great if Meson could be plugged into the stanrdard
> setuptools machinery with an Extension class that uses meson to compile
> the extension instead than setuptools. I heard on #mesonbuild that there
> may be someone working on something like this, IIUC. What's the status
> of this work? I may look into implementing this myself, but I am not
> familiar with the internals of Meson nor setuptools, thus it may take a
> while.

Sadly there's not tha much to tell, but here is a relevant bug report:

https://github.com/mesonbuild/meson/issues/7863

Daniele Nicolodi

unread,
Dec 2, 2020, 3:21:26 PM12/2/20
to Jussi Pakkanen, The Meson Build System
Well, technically, as pointed out in the bug above, there is
"mesonpep517" that should do exactly what I would like, however it does
not seem to be in an usable state yet.

Cheers,
Dan
Reply all
Reply to author
Forward
0 new messages