dev-python/zope-interface - 8.3 (gentoo)

Search

Install

Install this version:

emerge -a =dev-python/zope-interface-8.3

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

autounmask =dev-python/zope-interface-8.3

Or alternatively:

emerge --autounmask-write -a =dev-python/zope-interface-8.3

Package Information

Description:
Interfaces for Python
Homepage:
https://github.com/zopefoundation/zope.interface/ https://pypi.org/project/zope.interface/
License:
ZPL

Ebuild Details

Version EAPI Keywords Slot
8.3 8 ~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos ~x64-solaris 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYPI_PN=${PN/-/.}
PYTHON_COMPAT=( python3_{11..14} python3_{13..14}t pypy3_11 )

inherit distutils-r1 pypi

DESCRIPTION="Interfaces for Python"
HOMEPAGE="
	https://github.com/zopefoundation/zope.interface/
	https://pypi.org/project/zope.interface/
"

LICENSE="ZPL"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos ~x64-solaris"
IUSE="+native-extensions test"
RESTRICT="!test? ( test )"

BDEPEND="
	test? (
		dev-python/zope-event[${PYTHON_USEDEP}]
		dev-python/zope-testing[${PYTHON_USEDEP}]
	)
"

distutils_enable_tests unittest

src_prepare() {
	distutils-r1_src_prepare

	# force failure if extension build fails
	sed -i -e "/'build_ext':/d" setup.py || die
	if ! use native-extensions; then
		sed -i -e '/ext_modules=/d' setup.py || die
	fi
}

python_test() {
	local -x PURE_PYTHON=0
	if ! use native-extensions || [[ ${EPYTHON} == pypy3* ]]; then
		PURE_PYTHON=1
	fi

	eunittest -s "${BUILD_DIR}/install$(python_get_sitedir)/zope"
}

USE Flags

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

Global/Standard Flags

native-extensions
Default: Enabled (+)

Inherited Eclasses

Dependencies

BDEPEND

	test? (
		dev-python/zope-event[]
		dev-python/zope-testing[]
	)