From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: [PATCH] gnu: python-pyqt: Fix build by explicitly setting the stubsdir. Date: Fri, 2 Dec 2016 18:10:14 +0100 Message-ID: <1480698614-20481-1-git-send-email-h.goebel@crazy-compilers.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCrLw-0001OE-GG for guix-devel@gnu.org; Fri, 02 Dec 2016 12:10:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cCrLq-0000IV-LN for guix-devel@gnu.org; Fri, 02 Dec 2016 12:10:28 -0500 Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]:47341) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cCrLq-0000IL-Ej for guix-devel@gnu.org; Fri, 02 Dec 2016 12:10:22 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3tVgdP6507z3hlPL for ; Fri, 2 Dec 2016 18:10:17 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3tVgdP4w3XzvmC2 for ; Fri, 2 Dec 2016 18:10:17 +0100 (CET) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id 9OF1wpinLKDt for ; Fri, 2 Dec 2016 18:10:14 +0100 (CET) Received: from hermia.goebel-consult.de (ppp-188-174-150-110.dynamic.mnet-online.de [188.174.150.110]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Fri, 2 Dec 2016 18:10:14 +0100 (CET) Received: from lenashee.goebel-consult.de (lenashee.goebel-consult.de [192.168.110.2]) by hermia.goebel-consult.de (Postfix) with ESMTP id 36371603DA for ; Fri, 2 Dec 2016 18:10:14 +0100 (CET) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org 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