Displaying 4 results from an estimated 4 matches for "pyimport_appendinittab".
2020 Mar 23
2
Re: [PATCH nbdkit 3/3] python: Remove extraneous static keyword
...> +++ b/plugins/python/python.c
> @@ -224,7 +224,7 @@ static struct PyModuleDef moduledef = {
> NULL
> };
>
> -static PyMODINIT_FUNC
> +PyMODINIT_FUNC
> create_nbdkit_module (void)
> {
> PyObject *m;
> --
I don't believe this is correct. We call
PyImport_AppendInittab ("nbdkit", create_nbdkit_module);
later on so the function shouldn't need to public. What's the actual
error when compiling this?
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wo...
2020 Mar 23
0
Re: [PATCH nbdkit 3/3] python: Remove extraneous static keyword
...static struct PyModuleDef moduledef = {
> > NULL
> > };
> >
> > -static PyMODINIT_FUNC
> > +PyMODINIT_FUNC
> > create_nbdkit_module (void)
> > {
> > PyObject *m;
> > --
>
> I don't believe this is correct. We call
>
> PyImport_AppendInittab ("nbdkit", create_nbdkit_module);
>
> later on so the function shouldn't need to public. What's the actual
> error when compiling this?
>
> Rich.
>
> --
> Richard Jones, Virtualization Group, Red Hat
> http://people.redhat.com/~rjones
> Read my progr...
2020 Aug 05
5
[PATCH nbdkit 3/4] python: Allow thread model to be set from Python plugins.
This is working for me now, although possibly only on Python 3.9.
Dan suggested PyEval_InitThreads but that was deprecated in
Python 3.7.
Rich.
2020 Mar 23
6
[PATCH nbdkit 0/3] msys2 support for review
I pushed a few of the msys2 patches upstream. I changed the way that
$(SHARED_LDFLAGS) works so it's more to my liking, and the others were
pushed unchanged. Three patches remain which I'm posting on the
mailing list for proper review.
Rich.