From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:53823) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5sxH-0008E3-MY for guix-patches@gnu.org; Sun, 23 Feb 2020 10:14:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j5sxG-0005mH-Pl for guix-patches@gnu.org; Sun, 23 Feb 2020 10:14:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:45486) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j5sxG-0005m8-NC for guix-patches@gnu.org; Sun, 23 Feb 2020 10:14:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j5sxG-0006Fi-J9 for guix-patches@gnu.org; Sun, 23 Feb 2020 10:14:02 -0500 Subject: [bug#39754] [PATCH] gnu: z3: Build the Python bindings Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:53724) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5swu-0008Co-4v for guix-patches@gnu.org; Sun, 23 Feb 2020 10:13:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j5swt-0005NL-32 for guix-patches@gnu.org; Sun, 23 Feb 2020 10:13:40 -0500 Received: from pat.zlotemysli.pl ([37.59.186.212]:51254) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j5sws-0005Jo-QM for guix-patches@gnu.org; Sun, 23 Feb 2020 10:13:39 -0500 From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Date: Sun, 23 Feb 2020 16:14:10 +0100 Message-Id: <20200223151410.30739-1-kuba@kadziolka.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 39754@debbugs.gnu.org * gnu/packages/maths.scm (z3)[arguments]: Add the --python and --pypkgdir flags to configure. --- gnu/packages/maths.scm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 535ba02ea6..db2dc2a884 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -4181,7 +4181,12 @@ as equations, scalars, vectors, and matrices.") "0hprcdwhhyjigmhhk6514m71bnmvqci9r8gglrqilgx424r6ff7q")))) (build-system gnu-build-system) (arguments - `(#:phases + `(#:imported-modules ((guix build python-build-system) + ,@%gnu-build-system-modules) + #:modules ((guix build python-build-system) + (guix build gnu-build-system) + (guix build utils)) + #:phases (modify-phases %standard-phases (add-after 'unpack 'fix-compatability ;; Versions after 4.8.3 have immintrin.h IFDEFed for Windows only. @@ -4198,7 +4203,9 @@ as equations, scalars, vectors, and matrices.") (replace 'configure (lambda* (#:key inputs outputs #:allow-other-keys) (invoke "./configure" - (string-append "--prefix=" (assoc-ref outputs "out"))))) + "--python" + (string-append "--prefix=" (assoc-ref outputs "out")) + (string-append "--pypkgdir=" (site-packages inputs outputs))))) (add-after 'configure 'change-directory (lambda _ (chdir "build") -- 2.25.0