Python

Python lazy loading and namespace packages example

Python lazy loading and namespace packages

Recently I have bumped into a really weird issue, where in one project whilst trying to use a package pkg (I’ll use this name to avoid using a real project name) and write tests using the foo backend, that lived in a different package called pkg_foo. It was not working as intended when testing using the bazel build system and this post is about the path to root-causing the issue and arriving at the right conclusions.

TLDR: The source code with tests is in the github.com/aignas/anikevicius.lt/.