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-setuptools-rust |
| 11 | PKG_VERSION:=1.8.1 |
| 12 | PKG_RELEASE:=1 |
| 13 | |
| 14 | PYPI_NAME:=setuptools-rust |
| 15 | PKG_HASH:=94b1dd5d5308b3138d5b933c3a2b55e6d6927d1a22632e509fcea9ddd0f7e486 |
| 16 | |
| 17 | PKG_LICENSE:=MIT |
| 18 | PKG_LICENSE_FILES:=LICENSE |
| 19 | PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com> |
| 20 | |
| 21 | PKG_HOST_ONLY:=1 |
| 22 | HOST_BUILD_DEPENDS:= \ |
| 23 | python3/host \ |
| 24 | python-build/host \ |
| 25 | python-installer/host \ |
| 26 | python-wheel/host \ |
| 27 | python-setuptools-scm/host \ |
| 28 | python-semantic-version/host \ |
| 29 | rust/host |
| 30 | |
| 31 | include ../pypi.mk |
| 32 | include $(INCLUDE_DIR)/package.mk |
| 33 | include $(INCLUDE_DIR)/host-build.mk |
| 34 | include ../python3-package.mk |
| 35 | include ../python3-host-build.mk |
| 36 | |
| 37 | define Package/python3-setuptools-rust |
| 38 | SUBMENU:=Python |
| 39 | SECTION:=lang |
| 40 | CATEGORY:=Languages |
| 41 | TITLE:=Setuptools Rust extension plugin |
| 42 | URL:=https://github.com/PyO3/setuptools-rust |
| 43 | DEPENDS:= \ |
| 44 | +python3-light \ |
| 45 | +python3-logging \ |
| 46 | +python3-semantic-version \ |
| 47 | +python3-setuptools \ |
| 48 | +rust |
| 49 | BUILDONLY:=1 |
| 50 | endef |
| 51 | |
| 52 | define Package/python3-setuptools-rust/description |
| 53 | setuptools-rust is a plugin for setuptools to build Rust Python |
| 54 | extensions implemented with PyO3 or rust-cpython. |
| 55 | endef |
| 56 | |
| 57 | $(eval $(call Py3Package,python3-setuptools-rust)) |
| 58 | $(eval $(call BuildPackage,python3-setuptools-rust)) |
| 59 | $(eval $(call BuildPackage,python3-setuptools-rust-src)) |
| 60 | $(eval $(call HostBuild)) |