dev-python/moderngl-window - 3.1.1 (guru)

Search

Install

Install this version:

emerge -a =dev-python/moderngl-window-3.1.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-python/moderngl-window-3.1.1

Or alternatively:

emerge --autounmask-write -a =dev-python/moderngl-window-3.1.1

Package Information

Description:
A cross platform utility library for ModernGL
Homepage:
https://github.com/moderngl/moderngl-window https://pypi.org/project/moderngl-window
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
3.1.1 8 ~amd64 0
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DOCS_BUILDER="sphinx"
DOCS_DIR="docs"
DOCS_DEPEND="
	dev-python/moderngl
	dev-python/sphinx-rtd-theme
"

DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..13} )

inherit distutils-r1 virtualx docs optfeature

DESCRIPTION="A cross platform utility library for ModernGL"
HOMEPAGE="https://github.com/moderngl/moderngl-window https://pypi.org/project/moderngl-window"
SRC_URI="https://github.com/moderngl/moderngl-window/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND="
	<dev-python/moderngl-6[${PYTHON_USEDEP}]
	>=dev-python/pillow-10.0.1[${PYTHON_USEDEP}]
	>=dev-python/pyglet-2.0.0[${PYTHON_USEDEP}]
	dev-python/numpy[${PYTHON_USEDEP}]
	>=dev-python/pyglm-2.7.0[${PYTHON_USEDEP}]
	<dev-python/pyglm-3[${PYTHON_USEDEP}]
"
BDEPEND="
	test? (
		dev-python/glcontext[${PYTHON_USEDEP}]
		>=dev-python/pywavefront-1.2.0[${PYTHON_USEDEP}]
		<dev-python/pywavefront-2[${PYTHON_USEDEP}]
		>=dev-python/trimesh-3.2.6[${PYTHON_USEDEP}]
	)
"
DEPEND="${RDEPEND}"

distutils_enable_tests pytest
src_test() {
	virtx distutils-r1_src_test
}

python_install_all() {
	distutils-r1_python_install_all
	if use doc; then
		dodoc -r examples
		docompress -x /usr/share/doc/${PF}/examples
	fi
}

pkg_postinst() {
	optfeature "supporting pygame as backend" dev-python/pygame
	optfeature "supporting pysdl2 as backend" dev-python/pysdl2
	optfeature "supporting GLFW as backend" dev-python/glfw
	optfeature "supporting QT5 as backend" dev-python/pyqt5
	optfeature "supporting PySide as backend" dev-python/pyside
}

Inherited Eclasses

Dependencies

DEPEND

	<dev-python/moderngl-6[]
	>=dev-python/pillow-10.0.1[]
	>=dev-python/pyglet-2.0.0[]
	dev-python/numpy[]
	>=dev-python/pyglm-2.7.0[]
	<dev-python/pyglm-3[]

RDEPEND

	<dev-python/moderngl-6[]
	>=dev-python/pillow-10.0.1[]
	>=dev-python/pyglet-2.0.0[]
	dev-python/numpy[]
	>=dev-python/pyglm-2.7.0[]
	<dev-python/pyglm-3[]

BDEPEND

	test? (
		dev-python/glcontext[]
		>=dev-python/pywavefront-1.2.0[]
		<dev-python/pywavefront-2[]
		>=dev-python/trimesh-3.2.6[]
	)

Manifest for 3.1.1

Type File Size Source URLs
DIST moderngl-window-3.1.1.gh.tar.gz 30986129 bytes https://github.com/moderngl/moderngl-window/archive/refs/tags/3.1.1.tar.gz