Commit 7a0407e1 authored by Manuel Günther's avatar Manuel Günther

Unified versioning

parent 71430cf1
......@@ -531,9 +531,7 @@ static PyObject* create_module (void) {
return 0;
}
Py_INCREF(m);
return m;
return Py_BuildValue("O", m);
}
PyMODINIT_FUNC BOB_EXT_ENTRY_NAME (void) {
......
......@@ -149,11 +149,8 @@ static PyObject* create_module (void) {
auto m_ = make_safe(m); ///< protects against early returns
/* register version numbers and constants */
if (PyModule_AddStringConstant(m, "module", BOB_EXT_MODULE_VERSION) < 0)
return 0;
if (PyModule_AddIntConstant(m, "api", BOB_MATH_API_VERSION) < 0)
return 0;
if (PyModule_AddStringConstant(m, "module", BOB_EXT_MODULE_VERSION) < 0) return 0;
if (PyModule_AddIntConstant(m, "api", BOB_MATH_API_VERSION) < 0) return 0;
PyObject* externals = build_version_dictionary();
if (!externals) return 0;
......@@ -162,7 +159,6 @@ static PyObject* create_module (void) {
if (import_bob_blitz() < 0) return 0;
return Py_BuildValue("O", m);
}
PyMODINIT_FUNC BOB_EXT_ENTRY_NAME (void) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment