mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 10:51:55 +00:00
python-pybind11: add new package (version 2.13.6)
pybind11 is a header-only library that exposes C++ types in Python, used as a build-time dependency by packages like Pillow 12.x. Uses setuptools as its build backend. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
This commit is contained in:
committed by
Alexandru Ardelean
parent
63ffe5d5a3
commit
432fa809dd
54
lang/python/python-pybind11/Makefile
Normal file
54
lang/python/python-pybind11/Makefile
Normal file
@@ -0,0 +1,54 @@
|
||||
#
|
||||
# Copyright (C) 2025 Alexandru Ardelean <ardeleanalex@gmail.com>
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=python-pybind11
|
||||
PKG_VERSION:=2.13.6
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PYPI_NAME:=pybind11
|
||||
PKG_HASH:=ba6af10348c12b24e92fa086b39cfba0eff619b61ac77c406167d813b096d39a
|
||||
|
||||
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
|
||||
PKG_LICENSE:=BSD-3-Clause
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
PKG_HOST_ONLY:=1
|
||||
HOST_BUILD_DEPENDS:= \
|
||||
python3/host \
|
||||
python-build/host \
|
||||
python-installer/host \
|
||||
python-setuptools/host \
|
||||
python-wheel/host
|
||||
|
||||
include ../pypi.mk
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/host-build.mk
|
||||
include ../python3-package.mk
|
||||
include ../python3-host-build.mk
|
||||
|
||||
define Package/python3-pybind11
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
TITLE:=Seamless operability between C++11 and Python
|
||||
URL:=https://github.com/pybind/pybind11
|
||||
DEPENDS:=+python3
|
||||
BUILDONLY:=1
|
||||
endef
|
||||
|
||||
define Package/python3-pybind11/description
|
||||
pybind11 is a lightweight header-only library that exposes C++ types
|
||||
in Python and vice versa, mainly to create Python bindings of existing
|
||||
C++ code.
|
||||
endef
|
||||
|
||||
$(eval $(call Py3Package,python3-pybind11))
|
||||
$(eval $(call BuildPackage,python3-pybind11))
|
||||
$(eval $(call BuildPackage,python3-pybind11-src))
|
||||
$(eval $(call HostBuild))
|
||||
Reference in New Issue
Block a user