Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python3 support #5

Open
rom1sqr opened this issue May 14, 2021 · 1 comment
Open

Python3 support #5

rom1sqr opened this issue May 14, 2021 · 1 comment

Comments

@rom1sqr
Copy link

rom1sqr commented May 14, 2021

This project looks dead. But for those wondering how to make a wrapper compatible with Python3,
you just need to replace the PyMODINIT_FUNC init_pydmtx(void) function with this :

static struct PyModuleDef _pydmtx =
{
    PyModuleDef_HEAD_INIT,
    "_pydmtx",
    "",
    -1,
    dmtxMethods
};

PyMODINIT_FUNC PyInit__pydmtx(void)
{
    return PyModule_Create(&_pydmtx);
}

and to remove the init_pydmtx() call in the int main function. That's it!

@msva
Copy link
Contributor

msva commented Sep 24, 2021

Yeah, project (wrappers) is semi-dead, as all wrappers was made for outdated versions of "backend" languages.

Moreover, for now entire libdtmx project is (at least, temporarily) in maintenance-only mode (so, PRs are welcome)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants