| 4566 | }; |
| 4567 | |
| 4568 | PyMODINIT_FUNC PyInit__umath_linalg(void) |
| 4569 | { |
| 4570 | PyObject *m; |
| 4571 | PyObject *d; |
| 4572 | PyObject *version; |
| 4573 | |
| 4574 | m = PyModule_Create(&moduledef); |
| 4575 | if (m == NULL) { |
| 4576 | return NULL; |
| 4577 | } |
| 4578 | |
| 4579 | import_array(); |
| 4580 | import_ufunc(); |
| 4581 | |
| 4582 | d = PyModule_GetDict(m); |
| 4583 | if (d == NULL) { |
| 4584 | return NULL; |
| 4585 | } |
| 4586 | |
| 4587 | version = PyUnicode_FromString(umath_linalg_version_string); |
| 4588 | if (version == NULL) { |
| 4589 | return NULL; |
| 4590 | } |
| 4591 | int ret = PyDict_SetItemString(d, "__version__", version); |
| 4592 | Py_DECREF(version); |
| 4593 | if (ret < 0) { |
| 4594 | return NULL; |
| 4595 | } |
| 4596 | |
| 4597 | /* Load the ufunc operators into the module's namespace */ |
| 4598 | if (addUfuncs(d) < 0) { |
| 4599 | return NULL; |
| 4600 | } |
| 4601 | |
| 4602 | #ifdef HAVE_BLAS_ILP64 |
| 4603 | PyDict_SetItemString(d, "_ilp64", Py_True); |
| 4604 | #else |
| 4605 | PyDict_SetItemString(d, "_ilp64", Py_False); |
| 4606 | #endif |
| 4607 | |
| 4608 | return m; |
| 4609 | } |
nothing calls this directly
no test coverage detected