Skip to content

Commit 3d16417

Browse files
authored
handle ABI < 2 (#171)
1 parent c70fd36 commit 3d16417

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/pdal/PyArray.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ std::string toString(PyObject *pname)
9090
} // unnamed namespace
9191

9292

93+
#if NPY_ABI_VERSION < 0x02000000
94+
#define PyDataType_FIELDS(descr) ((descr)->fields)
95+
#endif
96+
9397
Array::Array(PyArrayObject* array) : m_array(array), m_rowMajor(true)
9498
{
9599
Py_XINCREF(array);

src/pdal/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__all__ = ["Pipeline", "Stage", "Reader", "Filter", "Writer", "dimensions", "info"]
2-
__version__ = '3.4.4'
2+
__version__ = '3.4.5'
33

44
from . import libpdalpython
55
from .drivers import inject_pdal_drivers

0 commit comments

Comments
 (0)