mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
python3-flit:Modify lfs to work with python-3.10.8
- 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>
This commit is contained in:
committed by
Peter Müller
parent
d9a6af2841
commit
0bae316983
@@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
include Config
|
include Config
|
||||||
|
|
||||||
|
SUMMARY = Simple way to put Python packages and modules on PyPI
|
||||||
|
|
||||||
VER = 3.7.1
|
VER = 3.7.1
|
||||||
|
|
||||||
THISAPP = flit-$(VER)
|
THISAPP = flit-$(VER)
|
||||||
@@ -31,8 +33,12 @@ DL_FILE = $(THISAPP).tar.gz
|
|||||||
DL_FROM = $(URL_IPFIRE)
|
DL_FROM = $(URL_IPFIRE)
|
||||||
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
||||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||||
|
|
||||||
PROG = python3-flit
|
PROG = python3-flit
|
||||||
PAK_VER = 2
|
PAK_VER = 3
|
||||||
|
DEPS =
|
||||||
|
|
||||||
|
SERVICES =
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Top-level Rules
|
# 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) && PYTHONPATH=flit_core python3 -m flit build --format wheel
|
||||||
cd $(DIR_APP)/flit_core && PIP_CONFIG_FILE=/dev/null pip3 install --isolated \
|
cd $(DIR_APP)/flit_core && PIP_CONFIG_FILE=/dev/null pip3 install --isolated \
|
||||||
--root="/" --ignore-installed --no-deps dist/*.whl
|
--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)
|
@rm -rf $(DIR_APP)
|
||||||
@$(POSTBUILD)
|
@$(POSTBUILD)
|
||||||
|
|||||||
Reference in New Issue
Block a user