Package: src:pyregion
Version: 2.2.0-1
Severity: important
Tags: sid trixie
User: debian-pyt...@lists.debian.org
Usertags: python3.12

pyregion ftbfs with Python 3.12 (and cython 3.0.5):

[...]
/usr/lib/python3/dist-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /<<PKGBUILDDIR>>/pyregion/_region_filter.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)

Error compiling Cython file:
------------------------------------------------------------
...

cdef extern from "stdlib.h":
    pass


cimport  c_numpy
         ^
------------------------------------------------------------

pyregion/_region_filter.pyx:9:9: 'c_numpy.pxd' not found

Error compiling Cython file:
------------------------------------------------------------
...
cdef extern from "stdlib.h":
    pass


cimport  c_numpy
from c_numpy cimport npy_bool
^
------------------------------------------------------------

pyregion/_region_filter.pyx:10:0: 'c_numpy/npy_bool.pxd' not found

Error compiling Cython file:
------------------------------------------------------------
...
    pass


cimport  c_numpy
from c_numpy cimport npy_bool
cimport c_python
        ^
------------------------------------------------------------

pyregion/_region_filter.pyx:11:8: 'c_python.pxd' not found

Error compiling Cython file:
------------------------------------------------------------
...
        return RegionAnd(self, o)

    def __or__(self, RegionBase o):
        return RegionOr(self, o)

    cdef npy_bool _inside(self, double x, double y):
         ^
------------------------------------------------------------

pyregion/_region_filter.pyx:103:9: 'npy_bool' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
        ny = c_python.PySequence_GetItem(shape, 0)
        nx = c_python.PySequence_GetItem(shape, 1)

        return self._mask(nx, ny)

cdef c_numpy.ndarray _mask(self, c_numpy.npy_intp nx, c_numpy.npy_intp ny):
         ^
------------------------------------------------------------

pyregion/_region_filter.pyx:134:9: 'ndarray' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
        ny = c_python.PySequence_GetItem(shape, 0)
        nx = c_python.PySequence_GetItem(shape, 1)

        return self._mask(nx, ny)

cdef c_numpy.ndarray _mask(self, c_numpy.npy_intp nx, c_numpy.npy_intp ny):
                                     ^
------------------------------------------------------------

pyregion/_region_filter.pyx:134:37: 'npy_intp' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
        ny = c_python.PySequence_GetItem(shape, 0)
        nx = c_python.PySequence_GetItem(shape, 1)

        return self._mask(nx, ny)

cdef c_numpy.ndarray _mask(self, c_numpy.npy_intp nx, c_numpy.npy_intp ny):
                                                          ^
------------------------------------------------------------

pyregion/_region_filter.pyx:134:58: 'npy_intp' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
    cdef RegionBase child_region

    def __init__(self, RegionBase child_region):
        self.child_region = child_region

    cdef npy_bool _inside(self, double x, double y):
         ^
------------------------------------------------------------

pyregion/_region_filter.pyx:246:9: 'npy_bool' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...

cdef class RegionOrList(RegionList):
    """
    >>> r = RegionOrList(r1, r2, r3, r4, ...)
    """
    cdef npy_bool _inside(self, double x, double y):
         ^
------------------------------------------------------------

pyregion/_region_filter.pyx:286:9: 'npy_bool' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
cdef class RegionAndList(RegionList):
    """
    >>> r = RegionAndList(r1, r2, r3, r4, ...)
    """

    cdef npy_bool _inside(self, double x, double y):
         ^
------------------------------------------------------------

pyregion/_region_filter.pyx:305:9: 'npy_bool' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...

    cdef int _transform(self, double x, double y, double *xp, double *yp):
        xp[0] = x
        yp[0] = y

    cdef npy_bool _inside(self, double x, double y):
         ^
------------------------------------------------------------

pyregion/_region_filter.pyx:365:9: 'npy_bool' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
    def __init__(self, double xc, double yc, double radius,
                 RegionContext c=None):
        self.metric_set_origin(xc, yc, c)
        self._set_v(xc, yc, radius)

    cdef npy_bool _inside(self, double x, double y):
         ^
------------------------------------------------------------

pyregion/_region_filter.pyx:475:9: 'npy_bool' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
        self.radius_minor_2 = radius_minor ** 2
self.radius_major_2_radius_minor_2 = self.radius_major_2 * self.radius_minor_2

        self.metric_set_origin(xc, yc, c)

    cdef npy_bool _inside(self, double x, double y):
         ^
------------------------------------------------------------

pyregion/_region_filter.pyx:516:9: 'npy_bool' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
        self.y1 = yc - halfheight
        self.y2 = yc + halfheight

        self.metric_set_origin(xc, yc, c)

    cdef npy_bool _inside(self, double x, double y):
         ^
------------------------------------------------------------

pyregion/_region_filter.pyx:552:9: 'npy_bool' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
     >>> shape = Polygon(x, y)

     Parameters:
     x, y : list of floats
    """
    cdef c_numpy.ndarray xa
         ^
------------------------------------------------------------

pyregion/_region_filter.pyx:564:9: 'ndarray' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...

     Parameters:
     x, y : list of floats
    """
    cdef c_numpy.ndarray xa
    cdef c_numpy.ndarray ya
         ^
------------------------------------------------------------

pyregion/_region_filter.pyx:565:9: 'ndarray' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
        self.x = <double *> c_numpy.PyArray_DATA(self.xa)
        self.y = <double *> c_numpy.PyArray_DATA(self.ya)

        self.metric_set_origin(self.x[0], self.y[0], c)

    cdef npy_bool _inside(self, double x, double y):
         ^
------------------------------------------------------------

pyregion/_region_filter.pyx:583:9: 'npy_bool' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
        if a > self.radian1:
            return self.radian1 + fmod((a - self.radian1), 2 * M_PI)
        else:
return self.radian1 + 2. * M_PI - fmod((self.radian1 - a), 2 * M_PI)

    cdef npy_bool _inside(self, double x, double y):
         ^
------------------------------------------------------------

pyregion/_region_filter.pyx:651:9: 'npy_bool' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...

        return self._mask(nx, ny)

cdef c_numpy.ndarray _mask(self, c_numpy.npy_intp nx, c_numpy.npy_intp ny):

        cdef c_numpy.npy_intp ny_nx[2]
             ^
------------------------------------------------------------

pyregion/_region_filter.pyx:136:13: 'npy_intp' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
        return self._mask(nx, ny)

cdef c_numpy.ndarray _mask(self, c_numpy.npy_intp nx, c_numpy.npy_intp ny):

        cdef c_numpy.npy_intp ny_nx[2]
        cdef c_numpy.ndarray ra
             ^
------------------------------------------------------------

pyregion/_region_filter.pyx:137:13: 'ndarray' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...

cdef c_numpy.ndarray _mask(self, c_numpy.npy_intp nx, c_numpy.npy_intp ny):

        cdef c_numpy.npy_intp ny_nx[2]
        cdef c_numpy.ndarray ra
        cdef npy_bool *rd
             ^
------------------------------------------------------------

pyregion/_region_filter.pyx:138:13: 'npy_bool' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
    def inside_xy(self, xy):
        """
        inside(x, y) : given the numpy array of x and y, returns an
        array b of same shape, where b[i] = inside1(x[i], y[i])
        """
        cdef c_numpy.ndarray xya
             ^
------------------------------------------------------------

pyregion/_region_filter.pyx:179:13: 'ndarray' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
        """
        inside(x, y) : given the numpy array of x and y, returns an
        array b of same shape, where b[i] = inside1(x[i], y[i])
        """
        cdef c_numpy.ndarray xya
        cdef c_numpy.ndarray ra
             ^
------------------------------------------------------------

pyregion/_region_filter.pyx:180:13: 'ndarray' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
        array b of same shape, where b[i] = inside1(x[i], y[i])
        """
        cdef c_numpy.ndarray xya
        cdef c_numpy.ndarray ra
        cdef double *xyd
        cdef npy_bool *rd
             ^
------------------------------------------------------------

pyregion/_region_filter.pyx:182:13: 'npy_bool' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
    def inside_x_y(self, x, y):
        """
        inside(x, y) : given the numpy array of x and y, returns an
        array b of same shape, where b[i] = inside1(x[i], y[i])
        """
        cdef c_numpy.ndarray xa
             ^
------------------------------------------------------------

pyregion/_region_filter.pyx:205:13: 'ndarray' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
        """
        inside(x, y) : given the numpy array of x and y, returns an
        array b of same shape, where b[i] = inside1(x[i], y[i])
        """
        cdef c_numpy.ndarray xa
        cdef c_numpy.ndarray ya
             ^
------------------------------------------------------------

pyregion/_region_filter.pyx:206:13: 'ndarray' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
        inside(x, y) : given the numpy array of x and y, returns an
        array b of same shape, where b[i] = inside1(x[i], y[i])
        """
        cdef c_numpy.ndarray xa
        cdef c_numpy.ndarray ya
        cdef c_numpy.ndarray ra
             ^
------------------------------------------------------------

pyregion/_region_filter.pyx:207:13: 'ndarray' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
        cdef c_numpy.ndarray xa
        cdef c_numpy.ndarray ya
        cdef c_numpy.ndarray ra
        cdef double *xd
        cdef double *yd
        cdef npy_bool *rd
             ^
------------------------------------------------------------

pyregion/_region_filter.pyx:210:13: 'npy_bool' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
cdef class RegionOrList(RegionList):
    """
    >>> r = RegionOrList(r1, r2, r3, r4, ...)
    """
    cdef npy_bool _inside(self, double x, double y):
        cdef c_python.PyListObject *child_regions
             ^
------------------------------------------------------------

pyregion/_region_filter.pyx:287:13: 'PyListObject' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
    """
    >>> r = RegionAndList(r1, r2, r3, r4, ...)
    """

    cdef npy_bool _inside(self, double x, double y):
        cdef c_python.PyListObject *child_regions
             ^
------------------------------------------------------------

pyregion/_region_filter.pyx:306:13: 'PyListObject' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
        xp[0] = x
        yp[0] = y

    cdef npy_bool _inside(self, double x, double y):
        cdef double xp, yp
        cdef npy_bool r
             ^
------------------------------------------------------------

pyregion/_region_filter.pyx:367:13: 'npy_bool' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...

        self.metric_set_origin(self.x[0], self.y[0], c)

    cdef npy_bool _inside(self, double x, double y):
        cdef int i, j
        cdef npy_bool r
             ^
------------------------------------------------------------

pyregion/_region_filter.pyx:585:13: 'npy_bool' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...

cimport  c_numpy
from c_numpy cimport npy_bool
cimport c_python

c_numpy.import_array()
       ^
------------------------------------------------------------

pyregion/_region_filter.pyx:13:7: cimported module has no attribute 'import_array'

Error compiling Cython file:
------------------------------------------------------------
...

        cdef int l, nx, ny

        if hasattr(img_or_shape, "shape"):
            shape = img_or_shape.shape
        elif c_python.PySequence_Check(img_or_shape):
                     ^
------------------------------------------------------------

pyregion/_region_filter.pyx:119:21: cimported module has no attribute 'PySequence_Check'

Error compiling Cython file:
------------------------------------------------------------
...
            shape = img_or_shape
        else:
raise RegionFilterException("the inut needs to be a numpy 2-d array"
                                        " or a tuple of two integers")

        if c_python.PySequence_Length(shape) != 2:
                   ^
------------------------------------------------------------

pyregion/_region_filter.pyx:125:19: cimported module has no attribute 'PySequence_Length'

Error compiling Cython file:
------------------------------------------------------------
...

        if c_python.PySequence_Length(shape) != 2:
raise RegionFilterException("shape of the input image must be 2d: "
                                        "%s is given" % (str(shape)))

        ny = c_python.PySequence_GetItem(shape, 0)
                     ^
------------------------------------------------------------

pyregion/_region_filter.pyx:129:21: cimported module has no attribute 'PySequence_GetItem'

Error compiling Cython file:
------------------------------------------------------------
...
        if c_python.PySequence_Length(shape) != 2:
raise RegionFilterException("shape of the input image must be 2d: "
                                        "%s is given" % (str(shape)))

        ny = c_python.PySequence_GetItem(shape, 0)
        nx = c_python.PySequence_GetItem(shape, 1)
                     ^
------------------------------------------------------------

pyregion/_region_filter.pyx:130:21: cimported module has no attribute 'PySequence_GetItem'

Error compiling Cython file:
------------------------------------------------------------
...
        cdef int iy, ix

        ny_nx[0] = ny
        ny_nx[1] = nx

        ra = c_numpy.PyArray_EMPTY(2, ny_nx,
                    ^
------------------------------------------------------------

pyregion/_region_filter.pyx:144:20: cimported module has no attribute 'PyArray_EMPTY'

Error compiling Cython file:
------------------------------------------------------------
...

        ny_nx[0] = ny
        ny_nx[1] = nx

        ra = c_numpy.PyArray_EMPTY(2, ny_nx,
                                   c_numpy.NPY_BOOL, 0)
                                          ^
------------------------------------------------------------

pyregion/_region_filter.pyx:145:42: cimported module has no attribute 'NPY_BOOL'

Error compiling Cython file:
------------------------------------------------------------
...
        ny_nx[1] = nx

        ra = c_numpy.PyArray_EMPTY(2, ny_nx,
                                   c_numpy.NPY_BOOL, 0)

        rd = <npy_bool *> c_numpy.PyArray_DATA(ra)
              ^
------------------------------------------------------------

pyregion/_region_filter.pyx:147:14: 'npy_bool' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
        ny_nx[1] = nx

        ra = c_numpy.PyArray_EMPTY(2, ny_nx,
                                   c_numpy.NPY_BOOL, 0)

        rd = <npy_bool *> c_numpy.PyArray_DATA(ra)
                                 ^
------------------------------------------------------------

pyregion/_region_filter.pyx:147:33: cimported module has no attribute 'PyArray_DATA'

Error compiling Cython file:
------------------------------------------------------------
...
        cdef double *xyd
        cdef npy_bool *rd
        cdef int i
        cdef int n

xya = c_numpy.PyArray_ContiguousFromAny(xy, c_numpy.NPY_DOUBLE, 1, 0)
                     ^
------------------------------------------------------------

pyregion/_region_filter.pyx:186:21: cimported module has no attribute 'PyArray_ContiguousFromAny'

Error compiling Cython file:
------------------------------------------------------------
...
        cdef double *xyd
        cdef npy_bool *rd
        cdef int i
        cdef int n

xya = c_numpy.PyArray_ContiguousFromAny(xy, c_numpy.NPY_DOUBLE, 1, 0)
                                                           ^
------------------------------------------------------------

pyregion/_region_filter.pyx:186:59: cimported module has no attribute 'NPY_DOUBLE'

Error compiling Cython file:
------------------------------------------------------------
...
        cdef int i
        cdef int n

xya = c_numpy.PyArray_ContiguousFromAny(xy, c_numpy.NPY_DOUBLE, 1, 0)

        ra = c_numpy.PyArray_EMPTY(1, xya.dimensions,
                    ^
------------------------------------------------------------

pyregion/_region_filter.pyx:188:20: cimported module has no attribute 'PyArray_EMPTY'

Error compiling Cython file:
------------------------------------------------------------
...
        cdef int n

xya = c_numpy.PyArray_ContiguousFromAny(xy, c_numpy.NPY_DOUBLE, 1, 0)

        ra = c_numpy.PyArray_EMPTY(1, xya.dimensions,
                                   c_numpy.NPY_BOOL, 0)
                                          ^
------------------------------------------------------------

pyregion/_region_filter.pyx:189:42: cimported module has no attribute 'NPY_BOOL'

Error compiling Cython file:
------------------------------------------------------------
...
xya = c_numpy.PyArray_ContiguousFromAny(xy, c_numpy.NPY_DOUBLE, 1, 0)

        ra = c_numpy.PyArray_EMPTY(1, xya.dimensions,
                                   c_numpy.NPY_BOOL, 0)

        xyd = <double *> c_numpy.PyArray_DATA(xya)
                                ^
------------------------------------------------------------

pyregion/_region_filter.pyx:191:32: cimported module has no attribute 'PyArray_DATA'

Error compiling Cython file:
------------------------------------------------------------
...

        ra = c_numpy.PyArray_EMPTY(1, xya.dimensions,
                                   c_numpy.NPY_BOOL, 0)

        xyd = <double *> c_numpy.PyArray_DATA(xya)
        rd = <npy_bool *> c_numpy.PyArray_DATA(ra)
              ^
------------------------------------------------------------

pyregion/_region_filter.pyx:192:14: 'npy_bool' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...

        ra = c_numpy.PyArray_EMPTY(1, xya.dimensions,
                                   c_numpy.NPY_BOOL, 0)

        xyd = <double *> c_numpy.PyArray_DATA(xya)
        rd = <npy_bool *> c_numpy.PyArray_DATA(ra)
                                 ^
------------------------------------------------------------

pyregion/_region_filter.pyx:192:33: cimported module has no attribute 'PyArray_DATA'

Error compiling Cython file:
------------------------------------------------------------
...
        cdef int n
#cdef c_numpy.npy_bool ((*_inside_ptr)(RegionBase, double ,double ))

        # FIX : check if two input has identical shape

        xa = c_numpy.PyArray_ContiguousFromAny(x, c_numpy.NPY_DOUBLE, 1, 0)
                    ^
------------------------------------------------------------

pyregion/_region_filter.pyx:217:20: cimported module has no attribute 'PyArray_ContiguousFromAny'

Error compiling Cython file:
------------------------------------------------------------
...
        cdef int n
#cdef c_numpy.npy_bool ((*_inside_ptr)(RegionBase, double ,double ))

        # FIX : check if two input has identical shape

        xa = c_numpy.PyArray_ContiguousFromAny(x, c_numpy.NPY_DOUBLE, 1, 0)
                                                         ^
------------------------------------------------------------

pyregion/_region_filter.pyx:217:57: cimported module has no attribute 'NPY_DOUBLE'

Error compiling Cython file:
------------------------------------------------------------
...
#cdef c_numpy.npy_bool ((*_inside_ptr)(RegionBase, double ,double ))

        # FIX : check if two input has identical shape

        xa = c_numpy.PyArray_ContiguousFromAny(x, c_numpy.NPY_DOUBLE, 1, 0)
        ya = c_numpy.PyArray_ContiguousFromAny(y, c_numpy.NPY_DOUBLE, 1, 0)
                    ^
------------------------------------------------------------

pyregion/_region_filter.pyx:218:20: cimported module has no attribute 'PyArray_ContiguousFromAny'

Error compiling Cython file:
------------------------------------------------------------
...
#cdef c_numpy.npy_bool ((*_inside_ptr)(RegionBase, double ,double ))

        # FIX : check if two input has identical shape

        xa = c_numpy.PyArray_ContiguousFromAny(x, c_numpy.NPY_DOUBLE, 1, 0)
        ya = c_numpy.PyArray_ContiguousFromAny(y, c_numpy.NPY_DOUBLE, 1, 0)
                                                         ^
------------------------------------------------------------

pyregion/_region_filter.pyx:218:57: cimported module has no attribute 'NPY_DOUBLE'

Error compiling Cython file:
------------------------------------------------------------
...
        # FIX : check if two input has identical shape

        xa = c_numpy.PyArray_ContiguousFromAny(x, c_numpy.NPY_DOUBLE, 1, 0)
        ya = c_numpy.PyArray_ContiguousFromAny(y, c_numpy.NPY_DOUBLE, 1, 0)

        ra = c_numpy.PyArray_EMPTY(xa.nd, xa.dimensions,
                    ^
------------------------------------------------------------

pyregion/_region_filter.pyx:220:20: cimported module has no attribute 'PyArray_EMPTY'

Error compiling Cython file:
------------------------------------------------------------
...

        xa = c_numpy.PyArray_ContiguousFromAny(x, c_numpy.NPY_DOUBLE, 1, 0)
        ya = c_numpy.PyArray_ContiguousFromAny(y, c_numpy.NPY_DOUBLE, 1, 0)

        ra = c_numpy.PyArray_EMPTY(xa.nd, xa.dimensions,
                                   c_numpy.NPY_BOOL, 0)
                                          ^
------------------------------------------------------------

pyregion/_region_filter.pyx:221:42: cimported module has no attribute 'NPY_BOOL'

Error compiling Cython file:
------------------------------------------------------------
...
        ya = c_numpy.PyArray_ContiguousFromAny(y, c_numpy.NPY_DOUBLE, 1, 0)

        ra = c_numpy.PyArray_EMPTY(xa.nd, xa.dimensions,
                                   c_numpy.NPY_BOOL, 0)

        xd = <double *> c_numpy.PyArray_DATA(xa)
                               ^
------------------------------------------------------------

pyregion/_region_filter.pyx:223:31: cimported module has no attribute 'PyArray_DATA'

Error compiling Cython file:
------------------------------------------------------------
...

        ra = c_numpy.PyArray_EMPTY(xa.nd, xa.dimensions,
                                   c_numpy.NPY_BOOL, 0)

        xd = <double *> c_numpy.PyArray_DATA(xa)
        yd = <double *> c_numpy.PyArray_DATA(ya)
                               ^
------------------------------------------------------------

pyregion/_region_filter.pyx:224:31: cimported module has no attribute 'PyArray_DATA'

Error compiling Cython file:
------------------------------------------------------------
...
        ra = c_numpy.PyArray_EMPTY(xa.nd, xa.dimensions,
                                   c_numpy.NPY_BOOL, 0)

        xd = <double *> c_numpy.PyArray_DATA(xa)
        yd = <double *> c_numpy.PyArray_DATA(ya)
        rd = <npy_bool *> c_numpy.PyArray_DATA(ra)
              ^
------------------------------------------------------------

pyregion/_region_filter.pyx:225:14: 'npy_bool' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
        ra = c_numpy.PyArray_EMPTY(xa.nd, xa.dimensions,
                                   c_numpy.NPY_BOOL, 0)

        xd = <double *> c_numpy.PyArray_DATA(xa)
        yd = <double *> c_numpy.PyArray_DATA(ya)
        rd = <npy_bool *> c_numpy.PyArray_DATA(ra)
                                 ^
------------------------------------------------------------

pyregion/_region_filter.pyx:225:33: cimported module has no attribute 'PyArray_DATA'

Error compiling Cython file:
------------------------------------------------------------
...

        xd = <double *> c_numpy.PyArray_DATA(xa)
        yd = <double *> c_numpy.PyArray_DATA(ya)
        rd = <npy_bool *> c_numpy.PyArray_DATA(ra)

        n = c_numpy.PyArray_SIZE(xa)
                   ^
------------------------------------------------------------

pyregion/_region_filter.pyx:227:19: cimported module has no attribute 'PyArray_SIZE'

Error compiling Cython file:
------------------------------------------------------------
...
    """
    cdef npy_bool _inside(self, double x, double y):
        cdef c_python.PyListObject *child_regions
        cdef int i, n

        child_regions = <c_python.PyListObject *> self.child_regions
                         ^
------------------------------------------------------------

pyregion/_region_filter.pyx:290:25: 'PyListObject' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
    cdef npy_bool _inside(self, double x, double y):
        cdef c_python.PyListObject *child_regions
        cdef int i, n

        child_regions = <c_python.PyListObject *> self.child_regions
        n = c_python.PyList_GET_SIZE(child_regions)
                    ^
------------------------------------------------------------

pyregion/_region_filter.pyx:291:20: cimported module has no attribute 'PyList_GET_SIZE'

Error compiling Cython file:
------------------------------------------------------------
...
        cdef int i, n

        child_regions = <c_python.PyListObject *> self.child_regions
        n = c_python.PyList_GET_SIZE(child_regions)
        for i from 0 <= i < n:
if (<RegionBase> c_python.PyList_GET_ITEM(child_regions, i))._inside(x, y):
                                     ^
------------------------------------------------------------

pyregion/_region_filter.pyx:293:37: cimported module has no attribute 'PyList_GET_ITEM'

Error compiling Cython file:
------------------------------------------------------------
...

    cdef npy_bool _inside(self, double x, double y):
        cdef c_python.PyListObject *child_regions
        cdef int i, n

        child_regions = <c_python.PyListObject *> self.child_regions
                         ^
------------------------------------------------------------

pyregion/_region_filter.pyx:309:25: 'PyListObject' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
    cdef npy_bool _inside(self, double x, double y):
        cdef c_python.PyListObject *child_regions
        cdef int i, n

        child_regions = <c_python.PyListObject *> self.child_regions
        n = c_python.PyList_GET_SIZE(child_regions)
                    ^
------------------------------------------------------------

pyregion/_region_filter.pyx:310:20: cimported module has no attribute 'PyList_GET_SIZE'

Error compiling Cython file:
------------------------------------------------------------
...
        cdef int i, n

        child_regions = <c_python.PyListObject *> self.child_regions
        n = c_python.PyList_GET_SIZE(child_regions)
        for i from 0 <= i < n:
if not (<RegionBase> c_python.PyList_GET_ITEM(child_regions, i))._inside(x, y):
                                         ^
------------------------------------------------------------

pyregion/_region_filter.pyx:312:41: cimported module has no attribute 'PyList_GET_ITEM'

Error compiling Cython file:
------------------------------------------------------------
...
    cdef double *y
    cdef int n

    def __init__(self, x, y,
                 RegionContext c=None):
self.xa = c_numpy.PyArray_CopyFromObject(x, c_numpy.NPY_DOUBLE, 1, 1)
                         ^
------------------------------------------------------------

pyregion/_region_filter.pyx:573:25: cimported module has no attribute 'PyArray_CopyFromObject'

Error compiling Cython file:
------------------------------------------------------------
...
    cdef double *y
    cdef int n

    def __init__(self, x, y,
                 RegionContext c=None):
self.xa = c_numpy.PyArray_CopyFromObject(x, c_numpy.NPY_DOUBLE, 1, 1)
                                                           ^
------------------------------------------------------------

pyregion/_region_filter.pyx:573:59: cimported module has no attribute 'NPY_DOUBLE'

Error compiling Cython file:
------------------------------------------------------------
...
    cdef int n

    def __init__(self, x, y,
                 RegionContext c=None):
self.xa = c_numpy.PyArray_CopyFromObject(x, c_numpy.NPY_DOUBLE, 1, 1) self.ya = c_numpy.PyArray_CopyFromObject(y, c_numpy.NPY_DOUBLE, 1, 1)
                         ^
------------------------------------------------------------

pyregion/_region_filter.pyx:574:25: cimported module has no attribute 'PyArray_CopyFromObject'

Error compiling Cython file:
------------------------------------------------------------
...
    cdef int n

    def __init__(self, x, y,
                 RegionContext c=None):
self.xa = c_numpy.PyArray_CopyFromObject(x, c_numpy.NPY_DOUBLE, 1, 1) self.ya = c_numpy.PyArray_CopyFromObject(y, c_numpy.NPY_DOUBLE, 1, 1)
                                                           ^
------------------------------------------------------------

pyregion/_region_filter.pyx:574:59: cimported module has no attribute 'NPY_DOUBLE'

Error compiling Cython file:
------------------------------------------------------------
...
    def __init__(self, x, y,
                 RegionContext c=None):
self.xa = c_numpy.PyArray_CopyFromObject(x, c_numpy.NPY_DOUBLE, 1, 1) self.ya = c_numpy.PyArray_CopyFromObject(y, c_numpy.NPY_DOUBLE, 1, 1)

        self.n = c_numpy.PyArray_SIZE(self.xa)
                        ^
------------------------------------------------------------

pyregion/_region_filter.pyx:576:24: cimported module has no attribute 'PyArray_SIZE'

Error compiling Cython file:
------------------------------------------------------------
...
self.xa = c_numpy.PyArray_CopyFromObject(x, c_numpy.NPY_DOUBLE, 1, 1) self.ya = c_numpy.PyArray_CopyFromObject(y, c_numpy.NPY_DOUBLE, 1, 1)

        self.n = c_numpy.PyArray_SIZE(self.xa)

        self.x = <double *> c_numpy.PyArray_DATA(self.xa)
                                   ^
------------------------------------------------------------

pyregion/_region_filter.pyx:578:35: cimported module has no attribute 'PyArray_DATA'

Error compiling Cython file:
------------------------------------------------------------
...
self.ya = c_numpy.PyArray_CopyFromObject(y, c_numpy.NPY_DOUBLE, 1, 1)

        self.n = c_numpy.PyArray_SIZE(self.xa)

        self.x = <double *> c_numpy.PyArray_DATA(self.xa)
        self.y = <double *> c_numpy.PyArray_DATA(self.ya)
                                   ^
------------------------------------------------------------

pyregion/_region_filter.pyx:579:35: cimported module has no attribute 'PyArray_DATA'
make[1]: *** [debian/rules:43: override_dh_auto_build] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:13: binary] Error 2

Reply via email to