During pbuilder build: run setup.py --install-layout=deb fails (no rights to write to /usr/lib/python2.7/dist-packages)
问题 I am trying to create PPA for PJSIP and would like to include the python-bindings. I modified the Makefile, so that setup.py is called: install: cd somefolder && python setup.py install --install-layout=deb However, in the pbuilder environment it fails due to insufficient rights on /usr/lib/python2.7/dist-packages/ and I cannot use sudo (obviously)... Suggestions? 回答1: Your debian/rules install target must never install any files outside of the build tree. Instead, it should be installing to