2 # Copyright (C) 2023 Jeffery To
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=python-flit-core
15 PYPI_SOURCE_NAME
:=flit_core
16 PKG_HASH
:=72ad266176c4a3fcfab5f2930d76896059851240570ce9a98733b658cb786eba
18 PKG_LICENSE
:=BSD-3-Clause
19 PKG_LICENSE_FILES
:=LICENSE
20 PKG_MAINTAINER
:=Jeffery To
<jeffery.to@gmail.com
>
23 HOST_BUILD_DEPENDS
:=python3
/host
26 include $(INCLUDE_DIR
)/package.mk
27 include $(INCLUDE_DIR
)/host-build.mk
28 include ..
/python3-package.mk
29 include ..
/python3-host-build.mk
31 define Package
/python3-flit-core
35 TITLE
:=Distribution-building parts of Flit
36 URL
:=https
://github.com
/pypa
/flit
37 DEPENDS
:=+python3-light
+python3-email
+python3-logging
41 define Package
/python3-flit-core
/description
42 This provides a PEP
517 build backend for packages using Flit. The only
43 public interface is the API specified by PEP
517, at flit_core.buildapi.
46 define Py3Host
/Install
/Installer
47 $(call HostPython3
/Run
, \
49 bootstrap_install.py \
50 --installdir
"$(1)/lib/python$(PYTHON3_VERSION)/site-packages" \
51 "$(PYTHON3_HOST_BUILD_DIR)"/openwrt-build
/$(PYPI_SOURCE_NAME
)-$(PKG_VERSION
)-*.whl \
55 Host
/Compile
=$(Py3Host
/Compile
/Bootstrap
)
57 $(eval
$(call Py3Package
,python3-flit-core
))
58 $(eval
$(call BuildPackage
,python3-flit-core
))
59 $(eval
$(call BuildPackage
,python3-flit-core-src
))
60 $(eval
$(call HostBuild
))