Comment #2 on issue 23 by
dho...@gmail.com: bittools extension fails to
Just for the record book, I am having this same problem. I'm using a Mac
OSX 10.7 with fink (python 2.7.4, numpy 1.7.1, libtiff 4.0.3, pylibtiff
rev89). I will likely have to downgrade to an older numpy. A coworker had
the same problem and here are the specific lines you need to change to get
this patched. Is this a problem in the way pylibtiff is using numpy?
Index: libtiff/src/tif_lzw.c
===================================================================
--- libtiff/src/tif_lzw.c (revision 89)
+++ libtiff/src/tif_lzw.c (working copy)
@@ -45,7 +45,7 @@
#include <Python.h>
-#define NPY_NO_DEPRECATED_API
+//#define NPY_NO_DEPRECATED_API
#define PY_ARRAY_UNIQUE_SYMBOL PyArray_API
#include "numpy/arrayobject.h"
Index: libtiff/src/bittools.c
===================================================================
--- libtiff/src/bittools.c (revision 89)
+++ libtiff/src/bittools.c (working copy)
@@ -1,5 +1,5 @@
#include <Python.h>
-#define NPY_NO_DEPRECATED_API
+// #define NPY_NO_DEPRECATED_API
#define PY_ARRAY_UNIQUE_SYMBOL PyArray_API
#include "numpy/arrayobject.h"