guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/03: gnu: python-pyqt: Fix build by explicitly setting the stubsdir.


From: Hartmut Goebel
Subject: 03/03: gnu: python-pyqt: Fix build by explicitly setting the stubsdir.
Date: Fri, 9 Dec 2016 13:22:25 +0000 (UTC)

htgoebel pushed a commit to branch master
in repository guix.

commit 43e8824d3cd3ff53671167ab9b41f0094458a4d6
Author: Hartmut Goebel <address@hidden>
Date:   Sun Dec 4 23:13:26 2016 +0100

    gnu: python-pyqt: Fix build by explicitly setting the stubsdir.
    
    * gnu/packages.qt.scm (python-pyqt, python2-pyqt)[arguments]: In phase
    'configure' pass option --stubsdir.
---
 gnu/packages/qt.scm |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index aaa7e1c..4a8fb6c 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -1015,13 +1015,19 @@ module provides support functions to the automatically 
generated code.")
                         "."))
                     (lib (string-append out "/lib/python"
                                         python-major+minor
-                                        "/site-packages")))
+                                        "/site-packages"))
+                    (stubs (string-append lib "/PyQt5")))
                (zero? (system* "python" "configure.py"
                                "--confirm-license"
                                "--bindir" bin
                                "--destdir" lib
                                "--designer-plugindir" designer
                                "--qml-plugindir" qml
+                               ; Where to install the PEP 484 Type Hints stub
+                               ; files. Without this the stubs are tried to be
+                               ; installed into the python package's
+                               ; site-package directory, which is read-only.
+                               "--stubsdir" stubs
                                "--sipdir" sip))))))))
     (home-page "https://www.riverbankcomputing.com/software/pyqt/intro";)
     (synopsis "Python bindings for Qt")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]