b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | # |
| 2 | # Copyright (C) 2023 Jeffery To |
| 3 | # |
| 4 | # This is free software, licensed under the GNU General Public License v2. |
| 5 | # See /LICENSE for more information. |
| 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=python-editables |
| 11 | PKG_VERSION:=0.5 |
| 12 | PKG_RELEASE:=1 |
| 13 | |
| 14 | PYPI_NAME:=editables |
| 15 | PKG_HASH:=309627d9b5c4adc0e668d8c6fa7bac1ba7c8c5d415c2d27f60f081f8e80d1de2 |
| 16 | |
| 17 | PKG_LICENSE:=MIT |
| 18 | PKG_LICENSE_FILES:=LICENSE.txt |
| 19 | PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com> |
| 20 | |
| 21 | PKG_HOST_ONLY:=1 |
| 22 | HOST_BUILD_DEPENDS:=python3/host python-build/host python-installer/host python-flit-core/host |
| 23 | |
| 24 | include ../pypi.mk |
| 25 | include $(INCLUDE_DIR)/package.mk |
| 26 | include $(INCLUDE_DIR)/host-build.mk |
| 27 | include ../python3-package.mk |
| 28 | include ../python3-host-build.mk |
| 29 | |
| 30 | define Package/python3-editables |
| 31 | SECTION:=lang |
| 32 | CATEGORY:=Languages |
| 33 | SUBMENU:=Python |
| 34 | TITLE:=Editable installations |
| 35 | URL:=https://github.com/pfmoore/editables |
| 36 | DEPENDS:=+python3-light |
| 37 | BUILDONLY:=1 |
| 38 | endef |
| 39 | |
| 40 | define Package/python3-editables/description |
| 41 | A Python library for creating "editable wheels" |
| 42 | |
| 43 | This library supports the building of wheels which, when installed, will |
| 44 | expose packages in a local directory on sys.path in "editable mode". In |
| 45 | other words, changes to the package source will be reflected in the |
| 46 | package visible to Python, without needing a reinstall. |
| 47 | endef |
| 48 | |
| 49 | $(eval $(call Py3Package,python3-editables)) |
| 50 | $(eval $(call BuildPackage,python3-editables)) |
| 51 | $(eval $(call BuildPackage,python3-editables-src)) |
| 52 | $(eval $(call HostBuild)) |