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-setuptools-rust
14 PYPI_NAME
:=setuptools-rust
15 PKG_HASH
:=c7100999948235a38ae7e555fe199aa66c253dc384b125f5d85473bf81eae3a3
18 PKG_LICENSE_FILES
:=LICENSE
19 PKG_MAINTAINER
:=Jeffery To
<jeffery.to@gmail.com
>
22 HOST_BUILD_DEPENDS
:= \
25 python-installer
/host \
27 python-setuptools-scm
/host \
28 python-semantic-version
/host \
29 python-typing-extensions
/host \
33 include $(INCLUDE_DIR
)/package.mk
34 include $(INCLUDE_DIR
)/host-build.mk
35 include ..
/python3-package.mk
36 include ..
/python3-host-build.mk
38 define Package
/python3-setuptools-rust
42 TITLE
:=Setuptools Rust extension plugin
43 URL
:=https
://github.com
/PyO3
/setuptools-rust
47 +python3-semantic-version \
49 +python3-typing-extensions \
54 define Package
/python3-setuptools-rust
/description
55 setuptools-rust is a plugin for setuptools to build Rust Python
56 extensions implemented with PyO3 or rust-cpython.
59 $(eval
$(call Py3Package
,python3-setuptools-rust
))
60 $(eval
$(call BuildPackage
,python3-setuptools-rust
))
61 $(eval
$(call BuildPackage
,python3-setuptools-rust-src
))
62 $(eval
$(call HostBuild
))