Skip to content

Commit

Permalink
handle ABI < 2
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Jun 18, 2024
1 parent c70fd36 commit afb150f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/pdal/PyArray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ std::string toString(PyObject *pname)
} // unnamed namespace


#if NPY_ABI_VERSION < 0x02000000
#define PyDataType_FIELDS(descr) ((descr)->fields)
#endif

Array::Array(PyArrayObject* array) : m_array(array), m_rowMajor(true)
{
Py_XINCREF(array);
Expand Down
2 changes: 1 addition & 1 deletion src/pdal/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__all__ = ["Pipeline", "Stage", "Reader", "Filter", "Writer", "dimensions", "info"]
__version__ = '3.4.4'
__version__ = '3.4.5'

from . import libpdalpython
from .drivers import inject_pdal_drivers
Expand Down

0 comments on commit afb150f

Please sign in to comment.