[v2,1/2] package/pocketpy: new package
Commit Message
It is a portable Python 3.x interpreter, written in C11. It has no
dependencies other than the C standard library, which can be easily
integrated into your C/C++ project
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
Changes v1 -> v2:
- mv staging commands under POCKETPY_INSTALL_STAGING_CMDS hook.
DEVELOPERS | 1 +
package/Config.in | 1 +
package/pocketpy/Config.in | 8 ++++++++
package/pocketpy/pocketpy.hash | 3 +++
package/pocketpy/pocketpy.mk | 25 +++++++++++++++++++++++++
5 files changed, 38 insertions(+)
create mode 100644 package/pocketpy/Config.in
create mode 100644 package/pocketpy/pocketpy.hash
create mode 100644 package/pocketpy/pocketpy.mk
Comments
Hi Dario,
Thanks for the patch.
On 01/06/2025 10:02, Dario Binacchi wrote:
> It is a portable Python 3.x interpreter, written in C11. It has no
> dependencies other than the C standard library, which can be easily
> integrated into your C/C++ project
>
> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
This package is introducing few build failures. See:
https://gitlab.com/jolivain/buildroot/-/pipelines/1847795347
There is possibly few missing toolchain requirements.
Could you have a look and send an updated patch, please?
Best regards,
Julien.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
@@ -811,6 +811,7 @@ F: package/armadillo/
F: package/babeld/
F: package/iana-assignments/
F: package/inih/
+F: package/pocketpy/
F: package/sscep/
F: package/tinyinit/
F: package/ufs-utils/
@@ -968,6 +968,7 @@ if BR2_STATIC_LIBS
comment "External PHP extensions need a toolchain w/ dynamic library"
endif
endif
+ source "package/pocketpy/Config.in"
source "package/python3/Config.in"
if BR2_PACKAGE_PYTHON3
menu "External python modules"
new file mode 100644
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_POCKETPY
+ bool "pocketpy"
+ depends on BR2_INSTALL_LIBSTDCPP
+ help
+ pocketpy is a portable Python 3.x interpreter,
+ written in C11.
+
+ https://github.com/pocketpy/pocketpy
new file mode 100644
@@ -0,0 +1,3 @@
+# locally computed
+sha256 5e07994d66311a6b5ac032cc5243aaabe3ab318946971e7fa1cd0614934efc81 pocketpy-2.0.8.tar.gz
+sha256 d3a2bf8ca609a75941e980e62c13cf5a21aeaa4a2502822934d282fe7de5d319 LICENSE
new file mode 100644
@@ -0,0 +1,25 @@
+################################################################################
+#
+# pocketpy
+#
+################################################################################
+
+POCKETPY_VERSION = 2.0.8
+POCKETPY_SITE = $(call github,pocketpy,pocketpy,v$(POCKETPY_VERSION))
+POCKETPY_LICENSE = MIT
+POCKETPY_LICENSE_FILES = LICENSE
+POCKETPY_INSTALL_STAGING = YES
+
+POCKETPY_CONF_OPTS = -DPK_BUILD_SHARED_LIB=ON
+
+define POCKETPY_INSTALL_TARGET_CMDS
+ $(INSTALL) -D -m 0755 $(@D)/libpocketpy.so* $(TARGET_DIR)/usr/lib
+endef
+
+define POCKETPY_INSTALL_STAGING_CMDS
+ $(INSTALL) -D -m 0755 $(@D)/libpocketpy.so* $(STAGING_DIR)/usr/lib
+ $(INSTALL) -m 755 -d $(STAGING_DIR)/usr/include/pocketpy
+ cp -r $(@D)/include/* $(STAGING_DIR)/usr/include/pocketpy
+endef
+
+$(eval $(cmake-package))