From patchwork Wed Nov 9 18:57:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adolf Belka X-Patchwork-Id: 6122 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4N6vQB566mz3xkP for ; Wed, 9 Nov 2022 18:58:58 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4N6vPc6vcMz30b; Wed, 9 Nov 2022 18:58:28 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4N6vPc4pTnz2xFl; Wed, 9 Nov 2022 18:58:28 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4N6vPY3B57z2yyM for ; Wed, 9 Nov 2022 18:58:25 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4N6vPW4dPDz2th; Wed, 9 Nov 2022 18:58:23 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1668020303; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=a3Be2mqcxleipdc4Vh7q5uPlGjZ8CpklWx+hWzx/YPE=; b=G2m9T4tWuNxKfPzImNZGOLyfTwl7iLMGxguF628TdT6ia/VQgLdIVTeEmBWPyyDHkvKX2B dB3emuLjwijgJTBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1668020303; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=a3Be2mqcxleipdc4Vh7q5uPlGjZ8CpklWx+hWzx/YPE=; b=aEAdi9qHkP+g5141oWViEOtk9mPO3HeayXfTk8fTQDriIPrwCoyznZpQV88t7nuHOV4uQQ D86ZBiFvSIWbpez/3CgJfaivOEslzy7y3aPlFrI98KOPxDYraKLkERIp1ZhABbYp2jqOmi y6QxlcQ2zjNnUuS1I6bePSWsfe8dYeqwrqZLEPvJbRflWJhskWpUDlHSyzNE6+PBrm5rHP ecWFa5eQas7DOZDtEdA79IE9Rg7OSMuAVVW7e4psuL9PuK9HTcugZeHE9Ipr4YF03no3Hv I5mey8yUVraN7jA+PWRdsm3eJ8IQbGZHP7zjpSkv5e0uCXdciFI4ftKwd+vEGw== From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH 46/48] python3-flit:Modify lfs to work with python-3.10.8 Date: Wed, 9 Nov 2022 19:57:32 +0100 Message-Id: <20221109185734.3920-46-adolf.belka@ipfire.org> In-Reply-To: <20221109185734.3920-1-adolf.belka@ipfire.org> References: <20221109185734.3920-1-adolf.belka@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" - The change to python-3.10.8 caused the rootfile to have temp build files from /root/.cache to be included in it. Added commands to remove these temp build files so they were not included to the rootfile. Tested-by: Adolf Belka Signed-off-by: Adolf Belka --- lfs/python3-flit | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lfs/python3-flit b/lfs/python3-flit index 36cd59596..c5c28a903 100644 --- a/lfs/python3-flit +++ b/lfs/python3-flit @@ -24,6 +24,8 @@ include Config +SUMMARY = Simple way to put Python packages and modules on PyPI + VER = 3.7.1 THISAPP = flit-$(VER) @@ -31,8 +33,12 @@ DL_FILE = $(THISAPP).tar.gz DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) + PROG = python3-flit -PAK_VER = 2 +PAK_VER = 3 +DEPS = + +SERVICES = ############################################################################### # Top-level Rules @@ -79,5 +85,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) cd $(DIR_APP) && PYTHONPATH=flit_core python3 -m flit build --format wheel cd $(DIR_APP)/flit_core && PIP_CONFIG_FILE=/dev/null pip3 install --isolated \ --root="/" --ignore-installed --no-deps dist/*.whl + + # remove temp build files in /root/.cache from rootfile + cd $(DIR_APP) && rm -R /root/.cache/ + @rm -rf $(DIR_APP) @$(POSTBUILD)