Package Details: python-astra-toolbox-git 2.2.0.g73388dd-1

Git Clone URL: https://aur.archlinux.org/python-astra-toolbox-git.git (read-only, click to copy)
Package Base: python-astra-toolbox-git
Description: MATLAB and Python toolbox of high-performance GPU primitives for 2D and 3D tomography
Upstream URL: https://github.com/astra-toolbox/astra-toolbox
Licenses: GPL3
Conflicts: python-astra-toolbox
Provides: python-astra-toolbox
Submitter: Nordwin
Maintainer: None
Last Packager: Nordwin
Votes: 0
Popularity: 0.000000
First Submitted: 2024-02-21 13:59 (UTC)
Last Updated: 2024-07-15 12:46 (UTC)

Latest Comments

Nordwin commented on 2024-07-10 08:56 (UTC)

Thanks for the suggestions, the newest upstream git makes all of those hacks unnecessary, and also seems to build with numpy 2.0

Alad commented on 2024-07-05 13:12 (UTC) (edited on 2024-07-05 13:14 (UTC) by Alad)

Also, please retrieve the python version from the interpreter, instead of hardcoding it:

https://wiki.archlinux.org/title/Python_package_guidelines#Using_Python_version

and use a revision counter so pkgver increases with every upgrade:

https://wiki.archlinux.org/title/VCS_package_guidelines#Git

Alad commented on 2024-07-05 12:51 (UTC) (edited on 2024-07-05 13:15 (UTC) by Alad)

Doesn't build with numpy 2, depends=python-numpy1 works.

<command-line>: warning: "_FORTIFY_SOURCE" redefined <command-line>: note: this is the location of the previous definition <command-line>: warning: "_FORTIFY_SOURCE" redefined <command-line>: note: this is the location of the previous definition <command-line>: warning: "_FORTIFY_SOURCE" redefined <command-line>: note: this is the location of the previous definition <command-line>: warning: "_FORTIFY_SOURCE" redefined <command-line>: note: this is the location of the previous definition In file included from /usr/lib/python3.12/site-packages/numpy/_core/include/numpy/ndarraytypes.h:1909,                  from /usr/lib/python3.12/site-packages/numpy/_core/include/numpy/ndarrayobject.h:12,                  from /usr/lib/python3.12/site-packages/numpy/_core/include/numpy/arrayobject.h:5,                  from /home/user/.cache/aurutils/sync/python-astra-toolbox-git/src/astra-toolbox/build/linux/python/cython/./astra/data2d_c.cpp:1301: /usr/lib/python3.12/site-packages/numpy/_core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]    17 | #warning "Using deprecated NumPy API, disable it with " \       |  ^~~~~~~ In file included from /home/user/.cache/aurutils/sync/python-astra-toolbox-git/src/astra-toolbox/build/linux/python/cython/./astra/data2d_c.cpp:1306: /home/user/.cache/aurutils/sync/python-astra-toolbox-git/src/astra-toolbox/build/linux/python/cython/./astra/CFloat32CustomPython.h: In constructor ‘CFloat32CustomPython::CFloat32CustomPython(PyObject*)’: /home/user/.cache/aurutils/sync/python-astra-toolbox-git/src/astra-toolbox/build/linux/python/cython/./astra/CFloat32CustomPython.h:7:40: error: cannot convert ‘PyObject*’ {aka ‘_object*’} to ‘const PyArrayObject*’ {aka ‘const tagPyArrayObject_fields*’}     7 |         m_fPtr = (float *)PyArray_DATA(arr);       |                                        ^~~       |                                        |       |                                        PyObject* {aka _object*} /usr/lib/python3.12/site-packages/numpy/_core/include/numpy/ndarraytypes.h:1508:35: note:   initializing argument 1 of ‘void* PyArray_DATA(const PyArrayObject*)’  1508 | PyArray_DATA(const PyArrayObject *arr)       |              ~~~~~~~~~~~~~~~~~~~~~^~~ error: command '/usr/bin/g++' failed with exit code 1 make: *** [Makefile:340: py] Error 1 ==> ERROR: A failure occurred in build().