all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] gnu: python-pyqt: Fix build by explicitly setting the stubsdir.
@ 2016-12-02 17:10 Hartmut Goebel
  2016-12-03 16:12 ` Ricardo Wurmus
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Hartmut Goebel @ 2016-12-02 17:10 UTC (permalink / raw)
  To: guix-devel

Without this option the stub files are tried to be installed into
the python package's site-package directory.

* gnu/packages.qt.scm (python-pyqt, python2-pyqt)[arguments]: In phase
'configure' pass option --stubsdir.
---
 gnu/packages/qt.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index b442356..92c6d4b 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -982,13 +982,15 @@ 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
+                               "--stubsdir" stubs  ; PEP 484 Type Hints stubs
                                "--sipdir" sip))))))))
     (home-page "https://www.riverbankcomputing.com/software/pyqt/intro")
     (synopsis "Python bindings for Qt")
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2016-12-09 12:54 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-02 17:10 [PATCH] gnu: python-pyqt: Fix build by explicitly setting the stubsdir Hartmut Goebel
2016-12-03 16:12 ` Ricardo Wurmus
2016-12-05  8:53   ` Hartmut Goebel
2016-12-05  9:12 ` [PATCH 0/3] Fixes for python-pyqt Hartmut Goebel
2016-12-05  9:12 ` [PATCH 1/3] gnu: python2-pyqt-4: Change package name to python2-pyqt Hartmut Goebel
2016-12-08 21:17   ` Efraim Flashner
2016-12-05  9:12 ` [PATCH 2/3] gnu: python-pyqt-5.5: Use non-inherited "configure" phase Hartmut Goebel
2016-12-05 12:44   ` Hartmut Goebel
2016-12-08 21:19   ` Efraim Flashner
2016-12-09 12:28     ` Hartmut Goebel
2016-12-09 12:30       ` Efraim Flashner
2016-12-09 12:54         ` Hartmut Goebel
2016-12-05  9:12 ` [PATCH 3/3 v2] gnu: python-pyqt: Fix build by explicitly setting the stubsdir Hartmut Goebel
2016-12-08 21:20   ` Efraim Flashner

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.