Skip to content

Commit 3495f10

Browse files
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.
1 parent f46b3f5 commit 3495f10

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mkl_random/mklrand.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2525
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2626

27+
from __future__ import absolute_import
2728
include "numpy.pxd"
2829

2930
cdef extern from "Python.h":

0 commit comments

Comments
 (0)