From patchwork Sat Feb 11 14:50:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Liliana Marie Prikler X-Patchwork-Id: 9857 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5D878165FF; Sat, 11 Feb 2023 15:01:38 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS 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 67E1A16613 for ; Sat, 11 Feb 2023 15:01:36 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQrNE-000164-GS; Sat, 11 Feb 2023 10:01:08 -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 ) id 1pQrN8-00015c-VO for guix-patches@gnu.org; Sat, 11 Feb 2023 10:01:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pQrN8-0002oQ-LM for guix-patches@gnu.org; Sat, 11 Feb 2023 10:01:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pQrN8-0001GU-4N for guix-patches@gnu.org; Sat, 11 Feb 2023 10:01:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61433] [PATCH 1/2] gnu: python-clingo: Install distribution information. References: In-Reply-To: Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 11 Feb 2023 15:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61433 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61433@debbugs.gnu.org Received: via spool by 61433-submit@debbugs.gnu.org id=B61433.16761276544833 (code B ref 61433); Sat, 11 Feb 2023 15:01:02 +0000 Received: (at 61433) by debbugs.gnu.org; 11 Feb 2023 15:00:54 +0000 Received: from localhost ([127.0.0.1]:42921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQrMz-0001Fr-Mb for submit@debbugs.gnu.org; Sat, 11 Feb 2023 10:00:53 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:39540) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQrMw-0001FU-S3 for 61433@debbugs.gnu.org; Sat, 11 Feb 2023 10:00:52 -0500 Received: by mail-ed1-f65.google.com with SMTP id eq11so7688490edb.6 for <61433@debbugs.gnu.org>; Sat, 11 Feb 2023 07:00:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:to:content-transfer-encoding:mime-version:subject:date :from:from:to:cc:subject:date:message-id:reply-to; bh=eVtDP/Q9J3PWQdDR6ljldoI+wIc2viRFdhbaq1eheaw=; b=l+m8uLWcjTj9oGB7yELqrIzVeGhEiG5d8A7OXIP4Dle5Z4ZUXIfWUEajfS7WdoGri0 dGQEU/wwqRKHDr9k4vgvRtMAlMnrmSSfx54q/607iQx6HgVMqsTNBuP7PxMC6F99cPEm CY1G0fXUeWdp0H5VN2PYL96lpVLLrkBrTDMLbGYoXFdSkUWOuvstaqI8MtlJFAfEHFef oCy0k9IPi4luRJ/7cxKUaeiXNqqqFMQm6LfQhw7vCo/5OfAQQ0IVSzJh8FKAeVRG6PDz wBBSTYAD9I2Z1HsyrcZKuxy1Iaq6HemNDGD7k4ji/GqlgnMrQbdu8SnyHIGupaP37zGz 90lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:to:content-transfer-encoding:mime-version:subject:date :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=eVtDP/Q9J3PWQdDR6ljldoI+wIc2viRFdhbaq1eheaw=; b=Ev5nF5V1hegmAbl5JRMPhWD6sDrJxleJqoL637lZ51/+X+YNsK/LJjPbws3EZ1aHZq AGrniO8fla1RlobRUoPU9sJsw2bJKTx/FsmuLYAfUqw+fNlVNY96ISiF1oHv07IaMm00 vW637kCir18PdgUwLLKeY2JVOmOzxchkcT84x2nj2hNz7gIVRfnqBPeokWFWlafzcEeZ mRGag3ZwDUCSU59cgK4O9dWHyct+dwwFSTKlYyHBQ4oCh4Nf4z15qyDriDt83ni2vV1z Q+WYkuznY4nydcH10JQJnBB7Odt2LK5oNWcnJMuW/Sowr5BXv5Fr9JG+WAp9LwjKiYHD DD8A== X-Gm-Message-State: AO0yUKWbPe1mm2AxCWxB8J48AguVC3uq31Sk9xq4/fyWZwunkLrXT0k1 /hDU41kgZCfqbhIntPd4WdG+ij1A67Ihqw== X-Google-Smtp-Source: AK7set8tap59QM0y0OAKsM6oeS1YVwbkhpue74ETLxa+EN3xeNHLpll2ncqwL/nnfUJB+9XfoFRLPA== X-Received: by 2002:a50:9b01:0:b0:4ac:bd72:e7c5 with SMTP id o1-20020a509b01000000b004acbd72e7c5mr727263edi.20.1676127644794; Sat, 11 Feb 2023 07:00:44 -0800 (PST) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id i9-20020a50d749000000b00495f4535a33sm3842164edj.74.2023.02.11.07.00.44 for <61433@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Feb 2023 07:00:44 -0800 (PST) From: Liliana Marie Prikler Date: Sat, 11 Feb 2023 15:50:34 +0100 MIME-Version: 1.0 Message-ID: <5a684c5420c335ebd2f42edb895980fe141cdce1.camel@gmail.com> 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/maths.scm (python-clingo)[#:phases]: Add ‘install-distinfo’. --- gnu/packages/maths.scm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 0da47943fd..61122f09af 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -2717,7 +2717,17 @@ (define-public python-clingo (("ctl\\.solve\\(on_statistics=on_statistics\\)" all) (string-append all - "; self.skipTest(\"You shall not fail.\")"))))))))) + "; self.skipTest(\"You shall not fail.\")"))))) + (add-after 'install 'install-distinfo + (lambda* (#:key inputs outputs #:allow-other-keys) + (with-directory-excursion (python:site-packages inputs outputs) + (let ((dir (string-append "clingo-" #$version ".dist-info"))) + (mkdir-p dir) + (call-with-output-file (string-append dir "/METADATA") + (lambda (port) + (format port "Metadata-Version: 1.1~%") + (format port "Name: clingo~%") + (format port "Version: ~a~%" #$version))))))))))) (inputs (list clingo python-wrapper)) (propagated-inputs (list python-cffi)) (native-inputs (modify-inputs (package-native-inputs clingo)