tech-pkg archive

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

Re: www/ap2-python fails to build

On Mon, Nov 04, 2019 at 12:08:00PM +0100, Martin Husemann wrote:
> and I can't seem to find what the fourth arg to _PyImport_FixupExtensionObject
> is supposed to be.
> Any hints?

I was pointed off-list at:

and indeed the _apachemodule part of that (with an ifdef added) makes the
source compile:

    m = Py_InitModule("_apache", _apache_module_methods);
    m = PyModule_Create(&_apache_moduledef);
    PyObject *name = PyUnicode_FromString("_apache");
    PyObject *modules = PyImport_GetModuleDict();
    _PyImport_FixupExtensionObject(m, name, name, modules);
    _PyImport_FixupExtensionObject(m, name, name);

... but then it fails with lots of local files called *.opt-2.pyc instead
of the apparently expected .opt-1.pyc - and this is too deep inside pkgsrc
magic for me :-/


Home | Main Index | Thread Index | Old Index