diff --git a/Release/compile.bat b/Release/compile.bat new file mode 100644 index 0000000000000000000000000000000000000000..45efd83f2d5579fada32a71c4c3fb93383b0f21a --- /dev/null +++ b/Release/compile.bat @@ -0,0 +1,10 @@ +rem MODIFY ACCORDINGLY! +set PATH=C:\Work\cppdevel\mingw64\bin;C:\Work\gnuwin\bin;%PATH% +set NUMPY_INCLUDE=C:\Work\moringa-standalone\Python\Lib\site-packages\numpy\core\include\numpy +set PYTHON_INCLUDE=C:\Work\moringa-standalone\Python\include +set PYTHON_LIB=python36 +set PYTHON_LIB_PATH=C:\Work\moringa-standalone\Python +set PYTHON_LD_EXT=pyd +set PYTHON_LD_INSTALLDIR=C:\Work\moringa-standalone\moringa\sitsproc_c_modules +set PYTHON_CPY_LINKERFLAGS= +mingw32-make diff --git a/src/main.cpp b/src/main.cpp index bcc77c32736cc84216a2b4cbd361489d721bef3a..e1208cbf3aa75dd8a410b5a7250975af4e1ce19b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -6,7 +6,7 @@ */ #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION - +#define _hypot hypot #include "Python.h" #if PY_MAJOR_VERSION >= 3 #define PY3K diff --git a/src/rasterstats.h b/src/rasterstats.h index 7f08acb675a0b9eccf199c9108a3a2d9a606bcda..14425c3889fcf6b32c771a146f3ce805fae28282 100644 --- a/src/rasterstats.h +++ b/src/rasterstats.h @@ -30,7 +30,7 @@ #include <map> //DEBUG -#include <Python.h> +//#include <Python.h> //----- using namespace std; diff --git a/src/rasterstats1d.h b/src/rasterstats1d.h index da7611d68e7228ea92159ea5e4f2fa9652d28e4b..e08103e46847ff8dcf1a27582cadc71d04b4070f 100644 --- a/src/rasterstats1d.h +++ b/src/rasterstats1d.h @@ -30,7 +30,7 @@ #include <map> //DEBUG -#include <Python.h> +//#include <Python.h> //----- using namespace std;