Title: #5636: Improve assertion when verifying paths for Python modules
Thanks for the reply, @elkoniu.
Here's how the paths are evaluated:
realpath(pyhbac.__file__) = /tmp/sssd/build/.libs/_py3hbac.so
realpath(MODPATH + /pyhbac.so) = /tmp/sssd/build/.libs/_py3hbac.so
You can also check that, without the patch, the paths are evaluated as:
Where `<<PKGBUILDDIR>>` is just a mnemonic for some temporary path that
`sbuild` uses. They are the same path, but the second one is relative.
See the full comment at https://github.com/SSSD/sssd/pull/5636#issuecomment-843595627