From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6FH3KD+RWmMpLQEAbAwnHQ (envelope-from ) for ; Thu, 27 Oct 2022 16:10:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cNZ8KD+RWmMq/QAAauVa8A (envelope-from ) for ; Thu, 27 Oct 2022 16:10:07 +0200 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 69BEF3DBDB for ; Thu, 27 Oct 2022 16:10:07 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oo3ZB-0004iT-H7; Thu, 27 Oct 2022 10:09:05 -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 1oo3Z8-0003ZB-FY for guix-patches@gnu.org; Thu, 27 Oct 2022 10:09:04 -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 1oo3Z8-0006GB-7L for guix-patches@gnu.org; Thu, 27 Oct 2022 10:09:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oo3Z7-0004M9-PR for guix-patches@gnu.org; Thu, 27 Oct 2022 10:09:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58587] [PATCH 01/14] gnu: python-setuptools: Move to python-build. Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 27 Oct 2022 14:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58587 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxim Cournoyer Cc: 58587@debbugs.gnu.org, Lars-Dominik Braun Received: via spool by 58587-submit@debbugs.gnu.org id=B58587.166687971216704 (code B ref 58587); Thu, 27 Oct 2022 14:09:01 +0000 Received: (at 58587) by debbugs.gnu.org; 27 Oct 2022 14:08:32 +0000 Received: from localhost ([127.0.0.1]:58746 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oo3Yd-0004LM-Qp for submit@debbugs.gnu.org; Thu, 27 Oct 2022 10:08:32 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oo3Ya-0004L8-QE for 58587@debbugs.gnu.org; Thu, 27 Oct 2022 10:08:30 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oo3YU-0006BN-Bh; Thu, 27 Oct 2022 10:08:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=UNLhJoeyqaXzWOHTb4tZgglW/ASm6oOEhFXx87mswW4=; b=AVw3GMxOU9Bf4Xg67MD2 BnrGRIoHNCwswAOpuZxRPuSoU+S3C217JN13VrYAYuh7/glQTMtzu+0KkhjTG5Ruzp5DJosKh0SNu JvNGyrHihJwaPHpD7LKN4xlNv78wxhjUc9ENw2bTQ5axEVD4xP7oMJnFawgr84/L65k7PiyxfQUA9 PPHq3T8m9scBBnUqwS1WBoFCHIwmJnZ9UPdlh1jp04iW00w14b9gayBRutTs06qFCBO67lvFUU3Bg I6z7HDZ5ezh4bHl93RVBFS8/kAZ+kmdKWTfMnkNotFJ7StvuHLUMl8pRCg/S6w+OZo89h8On80bbn OGpBbPrExdbShQ==; Received: from [84.214.173.6] (helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oo3YO-00046c-Hp; Thu, 27 Oct 2022 10:08:20 -0400 From: Marius Bakke In-Reply-To: <87czadl7of.fsf@gmail.com> References: <20221017200624.4076-1-marius@gnu.org> <20221017201201.4808-1-marius@gnu.org> <87czadl7of.fsf@gmail.com> Date: Thu, 27 Oct 2022 16:08:12 +0200 Message-ID: <874jvptl4j.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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" 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=1666879807; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: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=UNLhJoeyqaXzWOHTb4tZgglW/ASm6oOEhFXx87mswW4=; b=LizFm/VJoldl0cXJbrtXT1lpDZyBY/Sj+blGf8kGD4NJfTXotSpMwPpDpdHUoMlnpJheyb oPHCnYlUANAyzK/isRPVj6tzDiUSirsoIngMRnR0vB3PykO3mhppQPE2MllQlA3NqBxCB5 ZdpZV5ONnrHFsYNhQ9ZoVizGfXGBDkzi7FY8Yp+ewvcCF+OKAXHrVYY+jVYHyJyaINCSaC W796TqM5IH3lCbrKcDLQ/r6HJ6rdQuj5kYmlvRmhDX3CXgFABe9G0V1edYxBWL30kUnUCl Joj9+eAp49Lt6SMUaqaqtOq56WZCcM3I6N9ycrW6Vyl3LGviqij4XlNauH5EGg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666879807; a=rsa-sha256; cv=none; b=jWRNb/mwrmMq3XrLHwJbpiLMbBy8FSWsEr7W9X4DhQJ2qPXoNDnPsFB+gu7RGoueFTV9XD J0qsqyr+8+Z7XCOoNdWhRqVAE2PhH4aGKUtE+7if3YSEorx/JM6NA6m1CybrqQMqkrkvuX hYu+DQwEos1VGVdMXXP6mp1rmxI4nSm5/I/0qgBbVczN1dvKtRXprPsSUVaLcvP5QysMzc vJCHs4KTKiY6JJQybYrUV8ZSskvfBvdtr5VHQANc6FozeYaA0dJTdsWToZaAs4shFOs1bs NyOc8HeZsFqoeGd56EFetasr03tumuaFkVGkPIp06ZYI18AufXZSgmRHoDobCg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=AVw3GMxO; 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: -4.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=AVw3GMxO; 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: 69BEF3DBDB X-Spam-Score: -4.42 X-Migadu-Scanner: scn1.migadu.com X-TUID: rbynL5knORfM --=-=-= Content-Type: text/plain Maxim Cournoyer skriver: >> +(define-public python-setuptools >> + (package >> + (name "python-setuptools") >> + (version "64.0.3") >> + (source >> + (origin >> + (method url-fetch) >> + (uri (pypi-uri "setuptools" version)) >> + (sha256 >> + (base32 >> + "1sllqf0bhsl2yilf1w0xnlz0r4yaksmwaj0ap91zdc6kgbigdjiv")) >> + (modules '((guix build utils))) >> + (snippet >> + ;; Remove included binaries which are used to build self-extracting >> + ;; installers for Windows. >> + ;; TODO: Find some way to build them ourself so we can include them. > > I don't think we need a TODO to fix installers for Windows. I concur. >> + '(for-each delete-file (find-files "setuptools" >> + "^(cli|gui).*\\.exe$"))))) >> + (build-system python-build-system) >> + ;; FIXME: Tests require pytest, which itself relies on setuptools. >> + ;; One could bootstrap with an internal untested setuptools. >> + (arguments (list #:tests? #f)) >> + (home-page "https://pypi.org/project/setuptools/") >> + (synopsis "Library designed to facilitate packaging Python projects") >> + (description "Setuptools is a fully-featured, stable library designed to >> +facilitate packaging Python projects, where packaging includes: >> +@itemize >> +@item Python package and module definitions >> +@item distribution package metadata >> +@item test hooks >> +@item project installation >> +@item platform-specific details. >> +@end itemize") >> + ;; TODO: setuptools now bundles the following libraries: >> + ;; packaging, pyparsing, six and appdirs. How to unbundle? > > A better place for this TODO would be next to the snippet in the origin, > perhaps? The comments were taken verbatim from the current package definition. I'll submit a follow-up commit with these changes. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIUEARYKAC0WIQRNTknu3zbaMQ2ddzTocYulkRQQdwUCY1qQzQ8cbWFyaXVzQGdu dS5vcmcACgkQ6HGLpZEUEHclyQD/fXoNGvA7mAUavN3lsVXLFJBwt+oI62/aiLRU wOLlCuUA/RpdJmNxbkGB6ntGZDYwriL4pbjKI2e5mEahlcsPJtgK =4dly -----END PGP SIGNATURE----- --=-=-=--