From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id aCF4IW1mRmWGNQAA9RJhRA:P1 (envelope-from ) for ; Sat, 04 Nov 2023 16:42:37 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id aCF4IW1mRmWGNQAA9RJhRA (envelope-from ) for ; Sat, 04 Nov 2023 16:42:37 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5680D441B5 for ; Sat, 4 Nov 2023 16:42:37 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=CNFcibfV; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1699112557; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=tVXDi5fhJll7WJOXEdKjfeLaIpFgCEmVfZEFEVAlrCc=; b=gWOdFHlahM6MdbKZekI+Oq1+McoOY0wTegIoRQyLl9h+ACwwEc7wkfuBZXYjqzHWWmuOQT YG5/Dew4tEbr0RsrqLXWEsprXCnGkTfejvxKkflG1dDvGM1ximGvqrL69k55TI1fdrBTci 222/GD9B9J4CauxubyTISSqw1VHrvM9pmhU3VdbjfdH1xPuutVW/aJLmleG72/1wmiEgVI 0DhaEl1LY7+8Mevu/tKXOH5uJU1gxGZxvPAtVAG2FTMqcJCys6NHYuUYNLxFptE9++jbOZ TiOD7xoGXL15nMVw9+F3WsOGmDI+6jHmNhCpRBQDnMiS0H0wUa0sIhuMGVnaEg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=CNFcibfV; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1699112557; a=rsa-sha256; cv=none; b=D/wGA9qJE02YejtsdhgWVrpDP9k8oAnow6hIMFhy+OGj7r1w5vu10RWkQ420cgzBr/LX3F 326sfMc6BjZA8xx1+25WWcsXVvo9gvT+vXkWdiZ+RHHmIv3X7pfPUfWWt+a3XmgbufzK6Y lU23yTYsrJiqhCl+f38Kp+ngdmskZAPaJsI2a81/Cv+j6TyyqkAX5NU/0Mcb1h7Z91NS6k qlaFKusIkIGbuGV5gf4RLlV2xMh04zxsDGbOnBZvzr1lMGFm2GqCPMzYpf3aNtAFYWO56D lrD4QBb4zGkfAVxUcmbOSfv0U/e3Z/FxrPttY4uzpGuLSjrGh7cSF81y4pv5XA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qzIn5-000852-SN; Sat, 04 Nov 2023 11:42:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qzIn4-00084p-Ft for guix-patches@gnu.org; Sat, 04 Nov 2023 11:42:26 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qzIn4-0005U5-89 for guix-patches@gnu.org; Sat, 04 Nov 2023 11:42:26 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qzIne-0006Lc-2s for guix-patches@gnu.org; Sat, 04 Nov 2023 11:43:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66930] [PATCH] gnu: Add python-pyamg. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 04 Nov 2023 15:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66930 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66930@debbugs.gnu.org Received: via spool by 66930-submit@debbugs.gnu.org id=B66930.169911252924337 (code B ref 66930); Sat, 04 Nov 2023 15:43:02 +0000 Received: (at 66930) by debbugs.gnu.org; 4 Nov 2023 15:42:09 +0000 Received: from localhost ([127.0.0.1]:35610 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qzImn-0006KT-CH for submit@debbugs.gnu.org; Sat, 04 Nov 2023 11:42:09 -0400 Received: from mout02.posteo.de ([185.67.36.66]:33981) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qzImk-0006Jt-PQ for 66930@debbugs.gnu.org; Sat, 04 Nov 2023 11:42:08 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 12A92240101 for <66930@debbugs.gnu.org>; Sat, 4 Nov 2023 16:41:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1699112484; bh=50UxbTy0I7iXqVoeN2yO1amWbCeBxyKqfe+3WNS55r0=; h=Message-ID:Date:MIME-Version:Subject:To:From: Content-Transfer-Encoding:From; b=CNFcibfVQm2CdwlmbrC7PPJ8OwkULudYfXbx9cPTh+0MqrHLbFBOCqqTN/djgjtOO NeKWPCEm2oeGv5bfsOrBxmRA9/SDt2fR62T3Si0ONqLnP5i7H/sgpx6opdOxigS0q1 5kamMpyA8Ixz9wO/Xb9jp+yf1VqqDoplsACjYAHgojHWUluDzpszpHTprhJYrxmioO d2VHZvPzymCVtfdOVE3o+fVFi27/psNWQQ1hagJkdu8b+lMzFSljv7vPhWoQGtdUio AATLnw1q1ma/8DsVyqRPIMK4mmSNg4T6I+Y3wTlo+Iy9PRA/5CWt9Va0NgWfIQpk1F UJ6pWTd+CluwQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SN2030cPbz6txx for <66930@debbugs.gnu.org>; Sat, 4 Nov 2023 16:41:22 +0100 (CET) Message-ID: <2e963833-e5c0-4b45-9e43-d81b506b3e9d@posteo.net> Date: Sat, 4 Nov 2023 15:41:30 +0000 MIME-Version: 1.0 References: <39e96e5e211c0a24b03057c4387cc791f2e23e86.1699110356.git.felgru@posteo.net> Content-Language: en-US From: Vinicius Monego In-Reply-To: <39e96e5e211c0a24b03057c4387cc791f2e23e86.1699110356.git.felgru@posteo.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 2.69 X-Spam-Score: 2.69 X-Migadu-Queue-Id: 5680D441B5 X-Migadu-Scanner: mx13.migadu.com X-TUID: EYhJZofzI9QS Hello, Em 04/11/2023 12:05, Felix Gruber escreveu: > * gnu/packages/python-science.scm (python-pyamg): New variable. > > Change-Id: Ibf39fecd14d4e6fd72078b217737e5e5cbbf2321 > --- > gnu/packages/python-science.scm | 36 +++++++++++++++++++++++++++++++++ > 1 file changed, 36 insertions(+) > > diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm > index 4063797a30..1c2edda118 100644 > --- a/gnu/packages/python-science.scm > +++ b/gnu/packages/python-science.scm > @@ -387,6 +387,42 @@ (define-public python-trimesh > library.") > (license license:expat))) > > +(define-public python-pyamg > + (package > + (name "python-pyamg") > + (version "5.0.0") I saw that version 5.0.1 is out since Jul 3, 2023. Does it fail to build? > + (source (origin > + (method url-fetch) > + (uri (pypi-uri "pyamg" version)) > + (sha256 > + (base32 > + "0bm0cbqcj5zgs4k7djs5ga98pb95raxxdd674g744hv1iwi6gfga")))) > + (build-system pyproject-build-system) > + (propagated-inputs (list pybind11 python-numpy python-scipy)) Pybind11 is usually a native or normal input. Does it have to be propagated here? > + (native-inputs (list python-setuptools-scm python-pytest)) > + (arguments > + (list > + #:test-flags > + ;; Test installed package in order to find C++ modules. > + #~(list "--pyargs" "pyamg.tests"))) > + (home-page "https://github.com/pyamg/pyamg") > + (synopsis "Algebraic Multigrid Solvers in Python") > + (description "PyAMG is a Python library of Algebraic Multigrid > +(AMG) solvers. > + > +PyAMG features implementations of: Nitpick: to avoid repeating "PyAMG", you can say "It" in the second paragraph and join with the first. > +@itemize > +@item Ruge-Stuben (RS) or Classical AMG > +@item AMG based on Smoothed Aggregation (SA) > +@item Adaptive Smoothed Aggregation (αSA) > +@item Compatible Relaxation (CR) > +@item Krylov methods such as CG, GMRES, FGMRES, BiCGStab, MINRES, etc. > +@end itemize > +PyAMG is primarily written in Python with supporting C++ code for > +performance critical operations. > +") Implementation details like in this last sentence about languages and performance should be transparent to the user and can be omitted. > + (license license:expat))) > + > (define-public python-tspex > (package > (name "python-tspex") > > base-commit: 9dcd8802f5bc472579f23a38dcf437f8a9ac976c I also noticed that amg_core contains cpp files generated by the pyamg/amg_core/bindthem.py script. I'd suggest to grep 'DO NOT EDIT' on that directory to find the files, delete them in a snippet and rerun the bindthem.py script in a new phase after unpacking. Thanks, Vinicius