Package Details: python-shiboken2 5.15.16+3.1-2

Git Clone URL: https://aur.archlinux.org/pyside2.git (read-only, click to copy)
Package Base: pyside2
Description: Python bindings for shiboken2
Upstream URL: https://wiki.qt.io/Qt_for_Python
Licenses: LGPL-3.0-or-later
Submitter: arojas
Maintainer: envolution
Last Packager: envolution
Votes: 12
Popularity: 0.70
First Submitted: 2024-04-16 07:05 (UTC)
Last Updated: 2025-03-30 21:59 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

envolution commented on 2025-03-17 14:47 (UTC)

@zo0m if you had taken a moment before leaving this foul comment you may have noticed I've already added them to dependencies. If you are uncomfortable 'doing things by hand' perhaps this is not the operating system for you.

zo0M commented on 2025-03-17 13:12 (UTC) (edited on 2025-03-17 15:03 (UTC) by zo0M)

@envolution Well, if they are not mandatory, set them as optional. Why do they break the build? I don't need them in the system. And if they are mandatory, set them as required dependencies and let them be installed automatically. Why the hell should I do it by hand?

envolution commented on 2025-03-16 22:30 (UTC)

@zo0m those packages are in extra, you'll need to install them.

pacman -S qt5-quickcontrols2 python-numpy

zo0M commented on 2025-03-16 17:42 (UTC) (edited on 2025-03-16 17:43 (UTC) by zo0M)

Yes, i have

/etc/pacman.conf
...

[extra]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

...

envolution commented on 2025-03-16 16:22 (UTC)

@zo0M please confirm you have [extra] in /etc/pacman.conf

@ccorn thanks for the report and patch

zo0M commented on 2025-03-16 16:01 (UTC) (edited on 2025-03-16 16:02 (UTC) by zo0M)

I have this package hanging in the updates and it constantly crashes when trying to install. Fix it, please:

Installation log
Preparing...
Synchronizing package databases...
Refreshing AUR...
Nothing to do.
Checking python-shiboken2 dependencies...
Resolving dependencies...
Checking inter-conflicts...

Building pyside2...
==> Making package: pyside2 5.15.16+3.1-1 (Sun 16 Mar 2025 07:00:19 PM MSK)
==> Checking runtime dependencies...
==> Missing dependencies:
  -> python-numpy
  -> qt5-quickcontrols2
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.

ccorn commented on 2025-03-16 15:09 (UTC)

In chroot builds, _pythonpath does not get set properly, because when the chroot's makepkg reads PKGBUILD, Python has not been installed there yet. Consequently _pythonpath will be empty, the associated -I flags will be useless, numpy/arrayobject.h won't get found, and build() will fail.

Fix: Set _pythonpath not at top level, but at function level.

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -35,7 +35,10 @@ sha256sums=('6d3ed6fd17275ea74829ab56df9c2e7641bfca6b5b201cf244998fa81cf07360'
             '2f39461136a718a9f75bd94c1e71fc358764af25f68c650fd503c777e32ff302')

 _pkgdir="pyside-setup-opensource-src-${_pkgver}"
-_pythonpath=$(python -c "from sysconfig import get_path; print(get_path('platlib'))")
+
+_get_python_libdir() {
+  python -c "from sysconfig import get_path; print(get_path('platlib'))"
+}

 prepare() {
   mapfile -t _patch_series <debian/patches/series
@@ -47,6 +50,7 @@ prepare() {
 }

 build() {
+  local _pythonpath="$(_get_python_libdir)"
   cd $_pkgdir
   CFLAGS="-I${_pythonpath}/numpy/_core/include $CFLAGS"
   CXXFLAGS="-I${_pythonpath}/numpy/_core/include $CXXFLAGS"
@@ -79,6 +83,7 @@ package_shiboken2() {
 package_python-shiboken2() {
   pkgdesc='Python bindings for shiboken2'
   depends=('python' 'pyside2')
+  local _pythonpath="$(_get_python_libdir)"

   cd $_pkgdir
   DESTDIR="${pkgdir}" cmake --install build/sources/shiboken2
@@ -113,6 +118,7 @@ package_pyside2() {
     'qt5-quickcontrols2: QtQuickControls2 bindings'
   )
   provides=('qt5-python-bindings')
+  local _pythonpath="$(_get_python_libdir)"

   cd $_pkgdir
   DESTDIR="${pkgdir}" cmake --install build/sources/pyside2

Score_Under commented on 2025-01-04 13:02 (UTC)

Please can you bump pkgrel for the new deps list change?

leo72 commented on 2025-01-01 09:46 (UTC)

@envolution: I took your note about numpy as a suggestion and reinstalled it. And now I finally managed to compile pyside2: for some reason, some files got corrupted. Thanks.

PS: I'm not French, I'm Italian and the messages you read in my log were in italian ;-)

envolution commented on 2024-12-31 18:09 (UTC)

@leo72 you're missing python-numpy or it's not properly installed mais je ne parle pas français et je n'utilise pas Manjaro donc je ne suis pas sûr. joyeuses fêtes