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?

Alexis Wilke
  • 19,179
  • 10
  • 84
  • 156
Dennis Guse
  • 883
  • 10
  • 34

1 Answers1

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.

Community
  • 1
  • 1
Dennis Guse
  • 883
  • 10
  • 34