pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

xeus-python: New Package



Module Name:	pkgsrc-wip
Committed By:	matthew <matthewd%fastmail.us@localhost>
Pushed By:	matthewd
Date:		Fri May 1 20:58:29 2026 -0600
Changeset:	c3e7e9e496d357259652e4f4625f9b7046d8dee7

Added Files:
	xeus-python/COMMIT_MSG
	xeus-python/DESCR
	xeus-python/Makefile
	xeus-python/PLIST
	xeus-python/TODO
	xeus-python/distinfo

Log Message:
xeus-python: New Package

Python kernel for Jupyter based on the xeus framework

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=c3e7e9e496d357259652e4f4625f9b7046d8dee7

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 xeus-python/COMMIT_MSG |  3 +++
 xeus-python/DESCR      |  2 ++
 xeus-python/Makefile   | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++
 xeus-python/PLIST      | 26 +++++++++++++++++++++++++
 xeus-python/TODO       |  2 ++
 xeus-python/distinfo   |  5 +++++
 6 files changed, 89 insertions(+)

diffs:
diff --git a/xeus-python/COMMIT_MSG b/xeus-python/COMMIT_MSG
new file mode 100644
index 0000000000..f7d6229727
--- /dev/null
+++ b/xeus-python/COMMIT_MSG
@@ -0,0 +1,3 @@
+xeus-python: New Package
+
+Python kernel for Jupyter based on the xeus framework
diff --git a/xeus-python/DESCR b/xeus-python/DESCR
new file mode 100644
index 0000000000..1fe10a58d7
--- /dev/null
+++ b/xeus-python/DESCR
@@ -0,0 +1,2 @@
+xeus-python is a Jupyter kernel for Python based on the native implementation
+of the Jupyter protocol
diff --git a/xeus-python/Makefile b/xeus-python/Makefile
new file mode 100644
index 0000000000..8c404015c7
--- /dev/null
+++ b/xeus-python/Makefile
@@ -0,0 +1,51 @@
+# $NetBSD$
+DISTNAME=	xeus-python-0.19.0
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=jupyter-xeus/}
+GITHUB_TAG=	${PKGVERSION_NOREV}
+
+MAINTAINER=	matthewd%fastmail.us@localhost
+HOMEPAGE=	https://github.com/jupyter-xeus/xeus-python/
+COMMENT=	Jupyter kernel for Python, based on the xeus framework
+LICENSE=	modified-bsd
+
+USE_LANGUAGES=	c c++
+
+
+PYTHON_VERSIONS_ACCEPTED=	312 311 310 # Package says < 3.13
+
+TOOL_DEPENDS+=	${PYPKGPREFIX}-pybind11>=3.0.0:../../devel/py-pybind11
+
+.include "../../lang/python/pyversion.mk"
+
+CMAKE_CONFIGURE_ARGS+=	-Dpybind11_DIR=${PREFIX}/${PYSITELIB}/pybind11/share/cmake/pybind11
+CMAKE_CONFIGURE_ARGS+=	-DPYTHON_EXECUTABLE=${PYTHONBIN}
+MAKE_ENV+=		VERBOSE=1
+CONFIGURE_ENV+=		VERBOSE=1
+
+.include "../../mk/bsd.prefs.mk"
+.if (${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD") && exists(/usr/include/execinfo.h)
+LDFLAGS+=	-lexecinfo
+.endif
+
+
+post-install:
+	cd ${DESTDIR}${PREFIX}/bin && ${MV} xpython xpython-${PYVERSSUFFIX}
+
+
+SUBST_CLASSES+=			pyversion
+SUBST_MESSAGE.pyversion=	Replace xpython with xpython-${PYVERSSUFFIX}
+SUBST_STAGE.pyversion=		pre-install
+SUBST_FILES.pyversion+=		share/jupyter/kernels/xpython/kernel.json
+SUBST_FILES.pyversion+=		share/jupyter/kernels/xpython-raw/kernel.json
+SUBST_SED.pyversion+=		-e "s,xpython,xpython-${PYVERSSUFFIX},"
+
+PLIST_SUBST+=	PYVERSSUFFIX=${PYVERSSUFFIX}
+
+.include "../../devel/cmake/build.mk"
+.include "../../devel/cmake/configure-settings.mk"
+.include "../../devel/py-pybind11/buildlink3.mk"
+.include "../../wip/py-pybind11_json/buildlink3.mk"
+.include "../../wip/xeus/buildlink3.mk"
+.include "../../wip/xeus-zmq/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/xeus-python/PLIST b/xeus-python/PLIST
new file mode 100644
index 0000000000..3cef2277d9
--- /dev/null
+++ b/xeus-python/PLIST
@@ -0,0 +1,26 @@
+@comment $NetBSD$
+bin/xpython-${PYVERSSUFFIX}
+include/xeus-python/xaserver.hpp
+include/xeus-python/xdebugger.hpp
+include/xeus-python/xeus_python_config.hpp
+include/xeus-python/xinterpreter.hpp
+include/xeus-python/xinterpreter_raw.hpp
+include/xeus-python/xpaths.hpp
+include/xeus-python/xtraceback.hpp
+include/xeus-python/xutils.hpp
+lib/cmake/xeus-python/xeus-pythonConfig.cmake
+lib/cmake/xeus-python/xeus-pythonConfigVersion.cmake
+lib/cmake/xeus-python/xeus-pythonTargets-noconfig.cmake
+lib/cmake/xeus-python/xeus-pythonTargets.cmake
+lib/libxeus-python.a
+lib/libxeus-python.so
+lib/libxeus-python.so.0
+lib/libxeus-python.so.${PKGVERSION}
+share/jupyter/kernels/xpython-raw/kernel.json
+share/jupyter/kernels/xpython-raw/logo-32x32.png
+share/jupyter/kernels/xpython-raw/logo-64x64.png
+share/jupyter/kernels/xpython-raw/logo-svg.svg
+share/jupyter/kernels/xpython/kernel.json
+share/jupyter/kernels/xpython/logo-32x32.png
+share/jupyter/kernels/xpython/logo-64x64.png
+share/jupyter/kernels/xpython/logo-svg.svg
diff --git a/xeus-python/TODO b/xeus-python/TODO
new file mode 100644
index 0000000000..90bf4d38b9
--- /dev/null
+++ b/xeus-python/TODO
@@ -0,0 +1,2 @@
+* Set PYTHONHOME and PYTHON_EXECUTABLE in the kernel.json or in main.cpp
+* Support installing for more than one version of python?
diff --git a/xeus-python/distinfo b/xeus-python/distinfo
new file mode 100644
index 0000000000..827f637256
--- /dev/null
+++ b/xeus-python/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (xeus-python-0.19.0.tar.gz) = 35c861793aa670cef5edec9086e92c63f1d2d0d3c012999b35390676a4774a23
+SHA512 (xeus-python-0.19.0.tar.gz) = 125ae0eacbb3630d7ff6cec0dab0f847a78b9a92c1443cdff6b4227634ebf206d8bef6438015d368f39b6fd6bf85c90d9eac25fdb5027c9f713279b2405ceccb
+Size (xeus-python-0.19.0.tar.gz) = 4088819 bytes


Home | Main Index | Thread Index | Old Index