0

I try to build a PPA for Ubuntu of PJSIP including python bindings:

pbuilder-dist raring build pjproject_2.1-2.dsc

To install the bindings the command (executed by make install)

sudo python setup.py install

needs to be executed. Without sudo the command fails due to file restrictions.

I added sudo to the build dependencies, but for some reason a password request is opened.

Any suggestions?

4

1 回答 1

1

I found that the usage sudo is not necessary, if the package is configured correctly. I needed to add the folders, where python setup.py install needs access, to debian/*install files.... and use --install-layout=deb --root=debian/tmp

During pbuilder build: run setup.py --install-layout=deb fails (no rights to write to /usr/lib/python2.7/dist-packages)

Then the access permission are set correctly.

Just use dh_install correctly.

于 2013-07-19T07:27:34.047 回答