From 4f0537ff24c25e4979b140b5bc25e3c269599934 Mon Sep 17 00:00:00 2001 From: Oleksandr Pavlyk Date: Fri, 8 Dec 2017 11:19:18 -0600 Subject: [PATCH] Addded from __future__ import absolute_import to mklrand.pyx This is to work-around the error ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__ seen while loading mkl_random from within numpy's test-suite. --- mkl_random/mklrand.pyx | 1 + 1 file changed, 1 insertion(+) diff --git a/mkl_random/mklrand.pyx b/mkl_random/mklrand.pyx index b47b7a4..83cba8a 100644 --- a/mkl_random/mklrand.pyx +++ b/mkl_random/mklrand.pyx @@ -24,6 +24,7 @@ # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +from __future__ import absolute_import include "numpy.pxd" cdef extern from "Python.h":