Package Details: python-pyvoro-mmalahe 1.3.4-2

Git Clone URL: https://aur.archlinux.org/python-pyvoro-mmalahe.git (read-only, click to copy)
Package Base: python-pyvoro-mmalahe
Description: 2D and 3D Voronoi tessellations: a python entry point for the voro++ library
Upstream URL: https://github.com/mmalahe/pyvoro
Licenses: custom
Submitter: carlosal1015
Maintainer: carlosal1015
Last Packager: carlosal1015
Votes: 1
Popularity: 0.000000
First Submitted: 2021-09-09 16:36 (UTC)
Last Updated: 2025-11-11 21:41 (UTC)

Latest Comments

deanrw commented on 2025-11-11 18:14 (UTC)

Build fails for me as well, with the same error as @micwoj92.

It's due to Python 3.13. It adds a new borrow parameter to _PyLong_AsByteArray(), breaking Cython generated extensions that still call the 5-argument version. This small patch fixes that and enables compilation for me:

diff -ura pyvoro-mmalahe-1.3.4.orig/pyvoro/voroplusplus.cpp pyvoro-mmalahe-1.3.4.new/pyvoro/voroplusplus.cpp
--- pyvoro-mmalahe-1.3.4.orig/pyvoro/voroplusplus.cpp   2025-11-11 18:02:15.092088738 +0000
+++ pyvoro-mmalahe-1.3.4.new/pyvoro/voroplusplus.cpp    2025-11-11 18:03:57.132484091 +0000
@@ -8358,7 +8358,7 @@
                 unsigned char *bytes = (unsigned char *)&val;
                 ret = _PyLong_AsByteArray((PyLongObject *)v,
                                            bytes, sizeof(val),
-                                           is_little, !is_unsigned);
+                                           is_little, !is_unsigned, 0);
 #else
                 PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
                 int bits, remaining_bits, is_negative = 0;
@@ -8684,7 +8684,7 @@
                 unsigned char *bytes = (unsigned char *)&val;
                 ret = _PyLong_AsByteArray((PyLongObject *)v,
                                            bytes, sizeof(val),
-                                           is_little, !is_unsigned);
+                                           is_little, !is_unsigned, 0);
 #else
                 PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
                 int bits, remaining_bits, is_negative = 0;

micwoj92 commented on 2025-09-04 20:01 (UTC)

Build fails:

pyvoro/voroplusplus.cpp: In function ‘int __Pyx_PyInt_As_int(PyObject*)’:
pyvoro/voroplusplus.cpp:8359:42: error: too few arguments to function ‘int _PyLong_AsByteArray(PyLongObject*, unsigned char*, size_t, int, int, int)’
 8359 |                 ret = _PyLong_AsByteArray((PyLongObject *)v,
      |                       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
 8360 |                                            bytes, sizeof(val),
      |                                            ~~~~~~~~~~~~~~~~~~~
 8361 |                                            is_little, !is_unsigned);
      |                                            ~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.13/longobject.h:107,
                 from /usr/include/python3.13/Python.h:82:
/usr/include/python3.13/cpython/longobject.h:111:17: note: declared here
  111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
      |                 ^~~~~~~~~~~~~~~~~~~
pyvoro/voroplusplus.cpp: In function ‘long int __Pyx_PyInt_As_long(PyObject*)’:
pyvoro/voroplusplus.cpp:8685:42: error: too few arguments to function ‘int _PyLong_AsByteArray(PyLongObject*, unsigned char*, size_t, int, int, int)’
 8685 |                 ret = _PyLong_AsByteArray((PyLongObject *)v,
      |                       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
 8686 |                                            bytes, sizeof(val),
      |                                            ~~~~~~~~~~~~~~~~~~~
 8687 |                                            is_little, !is_unsigned);
      |                                            ~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.13/cpython/longobject.h:111:17: note: declared here
  111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
      |                 ^~~~~~~~~~~~~~~~~~~
error: command '/usr/bin/g++' failed with exit code 1

ERROR Backend subprocess exited when trying to invoke build_wheel
==> ERROR: A failure occurred in build().
    Aborting...