Message ID | cover.1739439090.git.lars.bilke@ufz.de |
---|---|
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id D266E27BBE9; Thu, 13 Feb 2025 09:36:29 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 9A29B27BBE2 for <patchwork@mira.cbaines.net>; Thu, 13 Feb 2025 09:36:28 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1tiVdn-0000Kt-3B; Thu, 13 Feb 2025 04:36:16 -0500 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 <Debian-debbugs@debbugs.gnu.org>) id 1tiVdc-0000KT-QQ for guix-patches@gnu.org; Thu, 13 Feb 2025 04:36:05 -0500 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 <Debian-debbugs@debbugs.gnu.org>) id 1tiVdb-000259-LB for guix-patches@gnu.org; Thu, 13 Feb 2025 04:36:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=From:Date:MIME-version:To:Subject; bh=IgaJi2syuemgN1oabhGrxovE5Yt71rLtagU033di2q8=; b=kgWX8/G6OduFPWtlLao+IIo1ImiUB/zXDFVNhyg0mMCSRsgoK3eQEIbChBvwHMhaNx2agMfsTU5sn++ubfLK2qB5BiID2UfbUjDq5mDMjU71x0RBaEhu8HfX75MjzlyKRrYtkQ958fa87VLVwVMWf9gTLqS1BCiaoIraLj812nb31qdISZ6I3/47W2hYsbymmZYpoPDDHQtLrQz42pOpvuXSjC072WA1IgDlNxIEJQdnYBEcBxWiH/q21RlnucHu/YcwNMURbO8C/wcqOljuuNfIzOKLNo9DReYA+akRjTB2lB2o2AMeem959/4kDJAK9OHZ8/gODLfrqCa5jlpKOQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1tiVda-0002zd-NL; Thu, 13 Feb 2025 04:36:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#76259] [PATCH 0/3] Add python-triangle, python-pandamesh and update gmsh to 4.13.1. Resent-From: Lars Bilke <lars.bilke@ufz.de> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: andreas@enge.fr, bavier@posteo.net, sharlatanus@gmail.com, guix-patches@gnu.org Resent-Date: Thu, 13 Feb 2025 09:36:02 +0000 Resent-Message-ID: <handler.76259.B.173943931611422@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 76259 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 76259@debbugs.gnu.org Cc: Lars Bilke <lars.bilke@ufz.de>, Andreas Enge <andreas@enge.fr>, Eric Bavier <bavier@posteo.net>, Sharlatan Hellseher <sharlatanus@gmail.com> X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Andreas Enge <andreas@enge.fr>, Eric Bavier <bavier@posteo.net>, Sharlatan Hellseher <sharlatanus@gmail.com> Received: via spool by submit@debbugs.gnu.org id=B.173943931611422 (code B ref -1); Thu, 13 Feb 2025 09:36:02 +0000 Received: (at submit) by debbugs.gnu.org; 13 Feb 2025 09:35:16 +0000 Received: from localhost ([127.0.0.1]:40430 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1tiVcp-0002y7-EH for submit@debbugs.gnu.org; Thu, 13 Feb 2025 04:35:15 -0500 Received: from lists.gnu.org ([2001:470:142::17]:41426) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <lars.bilke@ufz.de>) id 1tiVcn-0002wQ-HR for submit@debbugs.gnu.org; Thu, 13 Feb 2025 04:35:14 -0500 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 <lars.bilke@ufz.de>) id 1tiVce-0008Qa-U7 for guix-patches@gnu.org; Thu, 13 Feb 2025 04:35:06 -0500 Received: from mailgate5.ufz.de ([141.65.7.212] helo=mailgate.ufz.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <lars.bilke@ufz.de>) id 1tiVcd-0001lV-1L for guix-patches@gnu.org; Thu, 13 Feb 2025 04:35:04 -0500 Received: from imap.intranet.ufz.de (dcs1.intranet.ufz.de [141.65.125.135]) by mailgate.ufz.de (Mailgate5-UFZ) with ESMTP id 21F6A160369 for <guix-patches@gnu.org>; Thu, 13 Feb 2025 10:34:48 +0100 (CET) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: TEXT/PLAIN Received: from conversion-daemon.imap.intranet.ufz.de by imap.intranet.ufz.de (Oracle Communications Messaging Server 8.0.2.6.20200227 64bit (built Feb 27 2020)) id <0SRM00M00716RW00@imap.intranet.ufz.de> for guix-patches@gnu.org; Thu, 13 Feb 2025 10:34:48 +0100 (CET) Received: from smtp2.ufz.de ([141.65.7.217]) by imap.intranet.ufz.de (Oracle Communications Messaging Server 8.0.2.6.20200227 64bit (built Feb 27 2020)) with ESMTPS id <0SRM00G697XZPQD0@imap.intranet.ufz.de> for guix-patches@gnu.org; Thu, 13 Feb 2025 10:34:47 +0100 (CET) Received: from envinf4.minotaur-alpha.ts.net (unknown [141.65.34.85]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp2.ufz.de (smtp2-UFZ) with ESMTPSA id 2EC5FE0052; Thu, 13 Feb 2025 10:34:47 +0100 (CET) Date: Thu, 13 Feb 2025 10:34:32 +0100 From: Lars Bilke <lars.bilke@ufz.de> Message-id: <cover.1739439090.git.lars.bilke@ufz.de> X-Mailer: git-send-email 2.46.1 Received-SPF: pass client-ip=141.65.7.212; envelope-from=lars.bilke@ufz.de; helo=mailgate.ufz.de X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
Add python-triangle, python-pandamesh and update gmsh to 4.13.1.
|
|
Message
Lars Bilke
Feb. 13, 2025, 9:34 a.m. UTC
Added new package python-pandamesh which requires gmsh 4.13.1 and python-triangle. Lars Bilke (3): gnu: gmsh: Update to 4.13.1. gnu: Add python-triangle. gnu: Add python-pandamesh. gnu/packages/geo.scm | 35 +++++++++++++++++++++++++++++++++++ gnu/packages/maths.scm | 4 ++-- gnu/packages/python-xyz.scm | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 70 insertions(+), 2 deletions(-) base-commit: bcce7f8fa8b821b76591b297f61d473c5972e397
Comments
Hi Lars, Thank you for the patches. I've got some simplification review comments. --8<---------------cut here---------------start------------->8--- + (native-inputs (list python-setuptools python-wheel python-pytest)) --8<---------------cut here---------------end--------------->8--- Please sort alphabetically. --8<---------------cut here---------------start------------->8--- + (list + #:phases #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-v"))))))) --8<---------------cut here---------------end--------------->8--- This may be removed as pyproject-build-system tries to detect available test runner e.g. pytest in your case and does all setup within build system flow. --8<---------------cut here---------------start------------->8--- + (arguments + (list + #:phases #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; tests requiring network disabled + (invoke "pytest" "-v" "--ignore=tests/test_data.py"))))))) --8<---------------cut here---------------end--------------->8--- Likewise, you may utiize #:test-flags instead of adding custom phase. --8<---------------cut here---------------start------------->8--- + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/drufat/triangle") + (commit (string-append "v" version)) + (recursive? #t))) --8<---------------cut here---------------end--------------->8--- I guess the project contains git submodules, may you double check if may replace them with our own? gmsh is save to be refreshed on master: --8<---------------cut here---------------start------------->8--- guix refresh --list-dependent gmsh Building the following 3 packages would ensure 4 dependent packages are rebuilt: python-pygmsh@7.1.17 openfoam-com@2212 openfoam-org@10.20230119 --8<---------------cut here---------------end--------------->8--- Waiting for v2! -- Oleg
Dear Oleg, thanks a lot for your helpful review! Unfortunately, I have to retract the patches for python-triangle and python-pandamesh: Although python-triangle is LGPL licensed, it wraps Jonathan Richard Shewchuks triangle library, which has a proprietary non-commercial license: --8<---------------cut here---------------start------------->8--- These programs may be freely redistributed under the condition that the copyright notices (including the copy of this notice in the code comments and the copyright notice printed when the `-h' switch is selected) are not removed, and no compensation is received. Private, research, and institutional use is free. You may distribute modified versions of this code UNDER THE CONDITION THAT THIS CODE AND ANY MODIFICATIONS MADE TO IT IN THE SAME FILE REMAIN UNDER COPYRIGHT OF THE ORIGINAL AUTHOR, BOTH SOURCE AND OBJECT CODE ARE MADE FREELY AVAILABLE WITHOUT CHARGE, AND CLEAR NOTICE IS GIVEN OF THE MODIFICATIONS. Distribution of this code as part of a commercial system is permissible ONLY BY DIRECT ARRANGEMENT WITH THE AUTHOR. (If you are not directly supplying this code to a customer, and you are instead telling them how they can obtain it for free, then you are not required to make any arrangement with me.) --8<---------------cut here---------------end--------------->8--- So I think this is not suited for Guix. Feel free to merge the gmsh update commit and close this issue. Sincerely, Lars
Hi Lars,
I've pushed gmsh update after it built succefully on my machine:
--8<---------------cut here---------------start------------->8---
> ./pre-inst-env guix build gmsh
/gnu/store/p3zgbzgv7gvzj3f2gzfv0b04g7w16dzg-gmsh-4.13.1
--8<---------------cut here---------------end--------------->8---
Pushed to master as 3a916935311568b742d734cf76be8a45737f9382.