+1
−1
Loading
Numpy defines the import_array() macro to return void on error when built against python2. This conflicts with the python3-friendly definition of module_init(). In some cases, warnings are reported as errors and the compilation of SharedArray fails there. The workaround is to use import_array1(NULL) instead.