From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 QKY5Es2mZmPW8AAAbAwnHQ (envelope-from ) for ; Sat, 05 Nov 2022 19:09:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YDpeEc2mZmOSAAAAG6o9tA (envelope-from ) for ; Sat, 05 Nov 2022 19:09:17 +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 D424738777 for ; Sat, 5 Nov 2022 19:09:16 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1orNbT-0007qe-43; Sat, 05 Nov 2022 14:09:11 -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 1orNbL-0007m3-7P for guix-patches@gnu.org; Sat, 05 Nov 2022 14:09:03 -0400 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 1orNbK-0006Wh-RE for guix-patches@gnu.org; Sat, 05 Nov 2022 14:09:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1orNbK-0001ml-Ch for guix-patches@gnu.org; Sat, 05 Nov 2022 14:09:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58310] [PATCH 04/14] gnu: Add python-hatchling-bootstrap. Resent-From: Garek Dyszel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 05 Nov 2022 18:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58310 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Lars-Dominik Braun Cc: jgart@dismail.de, 58310@debbugs.gnu.org, zimoun Received: via spool by 58310-submit@debbugs.gnu.org id=B58310.16676717016816 (code B ref 58310); Sat, 05 Nov 2022 18:09:02 +0000 Received: (at 58310) by debbugs.gnu.org; 5 Nov 2022 18:08:21 +0000 Received: from localhost ([127.0.0.1]:58005 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1orNaf-0001ls-DK for submit@debbugs.gnu.org; Sat, 05 Nov 2022 14:08:21 -0400 Received: from knopi.disroot.org ([178.21.23.139]:50560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1orNac-0001li-Bk for 58310@debbugs.gnu.org; Sat, 05 Nov 2022 14:08:19 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id DA8964126C; Sat, 5 Nov 2022 19:08:16 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gCrrwlA6YR3J; Sat, 5 Nov 2022 19:08:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1667671695; bh=iWVE9mgF+ietITV6aB93r7fzh5cTWcrBC7ggHQp4AZE=; h=From:To:Cc:Subject:In-Reply-To:Date:References:From; b=ja933Zo7EY0KeDhkuZV2QsKvxCh3E1JzQLUV8K39JmA5hvGTnOG0i5cxNGAB1sEhp qOuI6OYt24Wn+9Q0c79HNs7WMQRo7iXmLZwUIL6BIAUyD3FpvtVUGf3Ou4woXOIP2m KAsVc5lOZlD+cTFVQlF0qG/vEQI/MyIf4s4YuvtABvquwY+0UZfhA9RRBVEXXfCXet TLz/2L9xHEx4gNzrrrL96mMGQR0jHh65e7RW4jXW4EtGF1WVcrVCS/PB1p1v6bia63 5KUHo37bsrRcZagZu8VCj03V2vzzN5fGE7kTyPzDupOvNVkIInUWKMqWL3PZC6dOCu ogWyG9YfMRhSQ== In-Reply-To: Date: Fri, 04 Nov 2022 11:15:49 -0400 Message-ID: <87cza2rbru.fsf@disroot.org> References: <87h70iqji2.fsf@disroot.org> <87czb6qiah.fsf@disroot.org> <87leotcmdd.fsf@gmail.com> <86zgd89thp.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: , Sender: "Guix-patches" Reply-to: Garek Dyszel X-ACL-Warn: , Garek Dyszel via Guix-patches From: Garek Dyszel via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667671757; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=uMewex+2cL/WBD0SnEHCNFJH5sNkHXegEztKpww8bpI=; b=NnkovGGtHM2sT+HNbT//i60w5mZRpG6QSjN5jTMFj/Lv/CaH79SXCipOmNJNoOBgGGa5ue Ws0sXt5Lssc3mRAyk/Dzp4eaBxdcBoMyt9sT+6RP2+4ZHtm470U6YFCwQHep6l+pssOmg0 HJ7UAfkvtK7DlNLRW884tl+1MX+/abBM+Q5Ui9Oysa3/s0BSdmFJmfgyX5oWHF8pX+aeut ckA8L5oKlie7zKAN+v70SFSdfzV92cFsmpi5P7uZj8B5/6RAbIl/nD2/WDpp/nymfOuWID N5+oRpilWT46j5G1Z5VqL8pOfr15ZxAF0+Rl4CncRgP8vnSI87GqGYgvBTY4wQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667671757; a=rsa-sha256; cv=none; b=oosFlLqD+gf40cfeizyes7Gyvn5cjW2BBxbLDhNimyTUAQteOeLB5NTNn62I1SzCB+HWeP 2MmuPobBpiIbA8lAIykwLFEnmcEdJnv6Gq9fjwV8R6/qvvLsqxYd5KG3S2YMVveo8ypqBK eXvr9F/glB5yn/yDWHnSNBse0AsrBZpB/V6M7NMOLEZs1Vvc51wxwu974m/m9ZYHOfnFH7 JUu5Ox2WarW5SGrWlLkeY2mYiSHNZvAVDY2RitdTcRz4JFfidfx7c1dub9QSXNIv27yabF NPQI2NDK1bznUC9GB6T1ioYmthT2awAVKBANPJAehDK7LQ0VC04hVHCjLq4EFQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=ja933Zo7; dmarc=pass (policy=none) header.from=gnu.org; 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-Spam-Score: -0.61 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=ja933Zo7; dmarc=pass (policy=none) header.from=gnu.org; 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-Queue-Id: D424738777 X-Spam-Score: -0.61 X-Migadu-Scanner: scn0.migadu.com X-TUID: qDbJ3U+zzoTr Hi Lars, At 20:59 2022-11-03 UTC+0900, Lars-Dominik Braun wrote: > And hatchling=E2=80=99s dependencies actually belong to hatch, > not hatchling, so there should be no cycles with python-xyz.scm. It seems dependencies from python-xyz.scm are still required to enter the build process for python-hatchling-bootstrap, even if hatchling does not explicitly require them. (1) If we comment out the dependencies from python-xyz.scm, we get this error: --8<---------------cut here---------------start------------->8--- starting phase `build' * Getting dependencies for wheel... ERROR Missing dependencies: pathspec>=3D0.10.1 pluggy>=3D1.0.0 --8<---------------cut here---------------end--------------->8--- (2) If we minimize the dependency list to the following, then python-hatchling-bootstrap builds correctly: --8<---------------cut here---------------start------------->8--- (inputs (list python-editables python-packaging-bootstrap ;; Below from python-xyz.scm, can be moved to python-build.scm python-pathspec-0.10.1 ;; Below from python-xyz.scm, can be moved to python-build.scm python-pluggy-1.0 python-tomli)) --8<---------------cut here---------------end--------------->8--- Changing the build system to (pyproject-build-system) produces the same results. Since python-pluggy-1.0 and python-pathspec depend only on packages defined in python-build.scm, I propose moving them to python-build.scm. What do you think? Garek --- Revised python-hatchling-boostrap definition (in case it is of interest): --8<---------------cut here---------------start------------->8--- (define-public python-hatchling-bootstrap (package (name "python-hatchling-bootstrap") (version "1.10.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/pypa/hatch") (commit (string-append "hatchling-v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0ahx62w711a2vnb91ahqxrw8yi0gq0kfch3fk6akzngd13376czj")))) ;; python-pypa-build needed for bootstrapping. ;; Otherwise we get a circular reference: ;; python-hatchling trying to build itself, without ;; first having hatchling installed. (inputs (list python-editables python-packaging-bootstrap ;; Below from python-xyz.scm, can be moved to python-buil= d.scm python-pathspec-0.10.1 ;; Below from python-xyz.scm, can be moved to python-buil= d.scm python-pluggy-1.0 python-tomli)) (build-system pyproject-build-system) (arguments `(;; Tests depend on module python-hatch, which this ;; is bootstrapping. #:tests? #f #:phases ;; Test for pyproject-build-system. This pre-build phase fails. ;; ;; (modify-phases %standard-phases ;; (add-before 'build 'chdir-to-backend ;; (lambda _ ;; (chdir "backend")))) ;; =20=20=20=20=20=20=20 ;; Original phases. (modify-phases %standard-phases (replace 'build (lambda _ (chdir "backend") ;; ZIP does not support timestamps before 1980. (setenv "SOURCE_DATE_EPOCH" "315532800") (invoke "python" "-m" "build" "--wheel" "--no-isolation" "."))) (replace 'install (lambda* (#:key outputs #:allow-other-keys) (let ((whl (car (find-files "dist" "\\.whl$")))) (invoke "pip" "--no-cache-dir" "--no-input" "install" "--no-deps" "--prefix" (assoc-ref %outputs "out") whl))))))) (home-page "https://ofek.dev/projects/hatch/") (synopsis "Bootstrap binaries to build @code{python-hatch}") (description "Bootstrap binaries to build @code{python-hatch}") ;; MIT License (license license:expat))) --8<---------------cut here---------------end--------------->8---