[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: python-shiboken-2: Add fix for python-pyside
From: |
guix-commits |
Subject: |
branch master updated: gnu: python-shiboken-2: Add fix for python-pyside-2. |
Date: |
Wed, 10 May 2023 12:24:08 -0400 |
This is an automated email from the git hooks/post-receive script.
glv pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new e2eb43f945 gnu: python-shiboken-2: Add fix for python-pyside-2.
e2eb43f945 is described below
commit e2eb43f945fd467e9b55a4b3c91cd186cf32e268
Author: Guillaume Le Vaillant <glv@posteo.net>
AuthorDate: Wed May 10 18:00:37 2023 +0200
gnu: python-shiboken-2: Add fix for python-pyside-2.
* gnu/packages/qt.scm (python-shiboken-2)[arguments]: Add
'workaround-importlib-error' phase.
---
gnu/packages/qt.scm | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 913470c9d3..1e5d29d9cf 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -3955,7 +3955,20 @@ color-related widgets.")
(add-before 'configure 'set-build-env
(lambda _
(let ((llvm #$(this-package-input "clang-toolchain")))
- (setenv "CLANG_INSTALL_DIR" llvm)))))))
+ (setenv "CLANG_INSTALL_DIR" llvm))))
+ (add-before 'configure 'workaround-importlib-error
+ (lambda _
+ ;; The following hack works around the error
+ ;; "module 'importlib' has no attribute 'machinery'"
+ ;; when building python-pyside-2, which depends on
+ ;; this package.
+ (substitute* "libshiboken/embed/signature_bootstrap.py"
+ (("import importlib" all)
+ (string-append
+ all
+ "\n import importlib.machinery as imachi"))
+ (("importlib.machinery.ModuleSpec")
+ "imachi.ModuleSpec")))))))
(home-page "https://wiki.qt.io/Qt_for_Python")
(synopsis
"Shiboken generates bindings for C++ libraries using CPython source code")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: python-shiboken-2: Add fix for python-pyside-2.,
guix-commits <=