dev-python/opencv-python-headless - 4.8.0.74 (blshkv)

Search

Install

Install this version:

emerge -a =dev-python/opencv-python-headless-4.8.0.74

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

autounmask =dev-python/opencv-python-headless-4.8.0.74

Or alternatively:

emerge --autounmask-write -a =dev-python/opencv-python-headless-4.8.0.74

Package Information

Description:
Wrapper package for OpenCV python bindings.
Homepage:
https://github.com/skvark/opencv-python https://pypi.org/project/opencv-python-headless/
License:
MIT

Ebuild Details

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

EAPI=8

DISTUTILS_USE_PEP517=no
PYTHON_COMPAT=( python3_{12..14} )

inherit distutils-r1

DESCRIPTION="Wrapper package for OpenCV python bindings."
HOMEPAGE="https://github.com/skvark/opencv-python https://pypi.org/project/opencv-python-headless/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
#KEYWORDS="amd64 arm arm64 x86"
IUSE="test"
RESTRICT="!test? ( test )"

DOCS="README.md"

RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]"
BDEPEND="
	dev-python/scikit-build[${PYTHON_USEDEP}]
	dev-python/setuptools[${PYTHON_USEDEP}]
	test? (
		dev-python/pytest[${PYTHON_USEDEP}]
	)"

src_prepare() {
	#https://pypi.org/project/opencv-python/
	einfo "DEBUG!!!!!!!"
	export CMAKE_ARGS='-DCMAKE_VERBOSE_MAKEFILE=ON'
	export VERBOSE=1
	export ENABLE_HEADLESS=1
	#Build with Qt Backend support
	export WITH_QT=5
	echo 1 > headless.enabled

	eapply_user

}

python_test() {
	py.test -v -v || die
}

distutils_enable_tests pytest

USE Flags

Manage flags for this package: euse -i <flag> -p dev-python/opencv-python-headless | euse -E <flag> -p dev-python/opencv-python-headless | euse -D <flag> -p dev-python/opencv-python-headless

Global/Standard Flags

Inherited Eclasses

Dependencies

RDEPEND

dev-python/numpy[]

BDEPEND

	dev-python/scikit-build[]
	dev-python/setuptools[]
	test? (
		dev-python/pytest[]
	)

Manifest for 4.8.0.74

Type File Size Source URLs
DIST opencv-python-headless-4.8.0.74.tar.gz 92092695 bytes mirror://pypi/o/opencv-python-headless/opencv-python-headless-4.8.0.74.tar.gz