Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

71.52. python3-zope-interface-8.7

Interfaces for Python: declared contracts that objects provide and adapters look up

8.7-1 · ZPL-2.1 · 0.1 SBU · 2.1 MiB, 115 files · 40_lang, 132 of 186 · ports/core/python-libs/python3-zope-interface

Homepage: https://github.com/zopefoundation/zope.interface

zope.interface declares interfaces in Python: an interface names the methods and attributes an object promises, a class declares that it implements one, and an adapter registry looks up the object that provides an interface for another. python3-twisted is built on it, and through Twisted so is kajongg.

Depends on: python3, python3-pip, python3-setuptools.

Required by (2): deluge, python3-twisted.

Sources: python3-zope-interface-8.7.tar.gz (260.1 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/40_lang/phase.env && kpkg install python3-zope-interface'

build.sh:

pip3 install --ignore-installed --no-deps --no-index --no-build-isolation --root=$PKG --prefix=/usr .
ls $PKG/usr/lib/python3*/site-packages/zope/interface/_zope_interface_coptimizations*.so

Directories: /usr/lib/python3.14/site-packages/zope, /usr/lib/python3.14/site-packages/zope_interface-8.7.dist-info, /usr/share/licenses/python3-zope-interface.

The C extension _zope_interface_coptimizations speeds up every interface check. setup.py builds it through a build_ext that turns a compile failure into a printed warning, and the package then installs with the pure-Python implementation alone. The last line of build.sh lists the installed extension module, so a failed compile stops the build instead of shipping the slow fallback.

The package’s own zope/interface/tests modules install with it; nothing removes them.