]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
python3-flit:Modify lfs to work with python-3.10.8
authorAdolf Belka <adolf.belka@ipfire.org>
Wed, 9 Nov 2022 18:57:32 +0000 (19:57 +0100)
committerPeter Müller <peter.mueller@ipfire.org>
Thu, 10 Nov 2022 15:13:54 +0000 (15:13 +0000)
- 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

index 36cd59596b024e49a8171a9467e4f34a36f9c872..c5c28a9031df92cbaba7dac2e908707a5b62862d 100644 (file)
@@ -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)