[git-buildpackage] Hacking: How to run git-buildpackage from sources?

Otto Kekäläinen otto at debian.org
Mon Dec 16 04:37:30 CET 2024


Hi!

I can run the system gbp like this:
# gbp --version
gbp 0.9.35

..and the packaged one in source tree like this:
# ./debian/tmp/usr/bin/gbp --version
gbp 0.9.35


..but what is the syntax to run the unpackaged raw source python?

I tried these but there is some gap in my understanding of the
"superfile" architecture this Python project has.

# PYTHONPATH="$PWD;$PYTHONPATH" python3 -m gbp.main --version
/usr/bin/python3: No module named gbp.main

# python3 -m gbp --version
/usr/bin/python3: No module named gbp.__main__; 'gbp' is a package and
cannot be directly executed


More information about the git-buildpackage mailing list