Commit fab8a1e6 authored by Christophe Favergeon's avatar Christophe Favergeon
Browse files

Correction to python wrapper build so that the result can be used on google colab

parent d1a2633b
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -27,7 +27,14 @@
 */
#ifndef CMSISMODULE_H
#define CMSISMODULE_H
#define NPY_NO_DEPRECATED_API NPY_1_15_API_VERSION
#define NPY_NO_DEPRECATED_API NPY_1_21_API_VERSION

#include <numpy/numpyconfig.h>

// API version used on google colab
#if (NPY_API_VERSION != 0x0000000E )
#error("Error building with wrong NumPy API version")
#endif

#ifdef WIN
#pragma warning( disable : 4013 ) 
+0 −1
Original line number Diff line number Diff line
@@ -7,7 +7,6 @@ from colorama import init,Fore, Back, Style
from numpy.testing import assert_allclose

from numpy.linalg import norm
from dtw import *

import matplotlib
import matplotlib as mpl
+4 −0
Original line number Diff line number Diff line
@@ -239,6 +239,10 @@ The wrapper is now containing the compute graph Python scripts and you should re

# Change history

## Version 1.9.5:

Same as 1.9.4 but will work in Google Colab.

## Version 1.9.4:

* Dynamic Time Warping API
+1 −1
Original line number Diff line number Diff line
# Python wrapper version
__version__ = "1.9.4"
__version__ = "1.9.5"
+1 −1
Original line number Diff line number Diff line
@@ -2,6 +2,6 @@
requires = [
    "setuptools>=42",
    "wheel",
    "numpy>=1.19"
    "numpy>=1.21, < 1.22"
]
build-backend = "setuptools.build_meta"
 No newline at end of file
Loading