From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id mNyiH9Kt52PQXQEAbAwnHQ (envelope-from ) for ; Sat, 11 Feb 2023 16:01:38 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cFogH9Kt52NBfwEAauVa8A (envelope-from ) for ; Sat, 11 Feb 2023 16:01:38 +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 3317E152DE for ; Sat, 11 Feb 2023 16:01:38 +0100 (CET) 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676127698; a=rsa-sha256; cv=none; b=Muuf8HF9OfLuUvvAHv8QxMSnF3yV3CV3EPrzdsYksovf9qdi4AxE7OjDo3YWNr9GZmdsCT XcSr13++keOHzHuAqt0dkMaS7VGMjCBef9Re/pY2yWwQd3WJlkdViuxTfORXX7L0ZOmfy3 K6thvMUWZkJb/HE1sPL4ks8/ATc82z6aFdVU60MDLnDk13iyB3zEhJoIyeAX28aEkKuXal 4qp8CIfldvtt6aldIJv42DwmOt10vABuiHOe/xiIflz5xLbLLHr4o9ysjAEg6CJ/Fw1V13 nQI9CpeEFlWaTcnsRlsBDDQmZvGdebDZOoTaNvB5LtqFO9pItGMhHOubqaMR0Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=l+m8uLWc; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676127698; 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=eVtDP/Q9J3PWQdDR6ljldoI+wIc2viRFdhbaq1eheaw=; b=h/NGJWtNZHnwn5jr+bMhWfl0mrlKR6r4eISF6reD8MzDlubMFyzQCMR/iEE0S3nOlXe8Rl zItGnnwuoPR1Mq+H7qcEEpm/U6d81ROvAOznm6Km5dimWRFeaojVsyPLUm/H1KBnXai8QN 5QWsITi/FTsyR3DsC621FAIclRlC9j6820D821PDswcJ2fjdw8QhRolZ4k023IrZvNimel sHUX3APCHdcY0vJ1ehqZPUddTtXhsiWMzoKEzlWJZT4bDw1SIujZ8RlSiebnOAQ65p1afU HOku0z+nQcDirmTud8CEYtA+4AhtkzypeNA3e9yIVN1CuVzqWz9I3aDAGzQHSA== X-Migadu-Spam-Score: -2.01 X-Spam-Score: -2.01 X-Migadu-Queue-Id: 3317E152DE Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=l+m8uLWc; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Scanner: scn1.migadu.com X-TUID: UI3gxKpfHrrP * 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) -- 2.39.1