From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: [PATCH 3/3 v2] gnu: python-pyqt: Fix build by explicitly setting the stubsdir. Date: Mon, 5 Dec 2016 10:12:58 +0100 Message-ID: <1480929178-6383-4-git-send-email-h.goebel@crazy-compilers.com> References: <1480929178-6383-1-git-send-email-h.goebel@crazy-compilers.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cDpKe-0002PB-Oi for guix-devel@gnu.org; Mon, 05 Dec 2016 04:13:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cDpKd-0002AQ-Ko for guix-devel@gnu.org; Mon, 05 Dec 2016 04:13:08 -0500 Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]:60114) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cDpKd-0002AK-Eq for guix-devel@gnu.org; Mon, 05 Dec 2016 04:13:07 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3tXJvQ3PK5z3hjjw for ; Mon, 5 Dec 2016 10:13:06 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3tXJvQ2YqFzw3MX for ; Mon, 5 Dec 2016 10:13:06 +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 XnhQN3XoUXSk for ; Mon, 5 Dec 2016 10:13:04 +0100 (CET) Received: from hermia.goebel-consult.de (ppp-188-174-154-106.dynamic.mnet-online.de [188.174.154.106]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Mon, 5 Dec 2016 10:13:04 +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 9287A61672 for ; Mon, 5 Dec 2016 10:12:58 +0100 (CET) In-Reply-To: <1480929178-6383-1-git-send-email-h.goebel@crazy-compilers.com> In-Reply-To: <1480698614-20481-1-git-send-email-h.goebel@crazy-compilers.com> References: <1480698614-20481-1-git-send-email-h.goebel@crazy-compilers.com> 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 * 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") -- 2.7.4