[46/48] python3-flit:Modify lfs to work with python-3.10.8

Message ID 20221109185734.3920-46-adolf.belka@ipfire.org
State Accepted
Commit 0bae316983fd885274f4352ca8eb58c5c4f1d5dd
Headers
Series [01/48] python3: Update to version 3.10.8 |

Commit Message

Adolf Belka Nov. 9, 2022, 6:57 p.m. UTC
  - 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 <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
 lfs/python3-flit | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
  

Patch

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)