Alternative way to use pip for building of packages?

Asked by Howard Liu

This is about building of PPA packages from source packages.

I would like to use virtualenv in the building of my package. Virtualenv itself will download some packages through pip. However, it seems that pip is completely blocked (may be all networks are blocked except for internal networks) in the building machines of Launchpad. Therefore, there is no way to build my package.

Is there an alternative way to use pip in the building process of the PPA packages? Which part of the debian file needs to be modified?

This is my buildlog: https://launchpadlibrarian.net/336948425/buildlog_ubuntu-trusty-ppc64el.pdns_4.1.0-rc1-47-g2834c50+trusty+ixnet.work-rebuild3-1_BUILDING.txt.gz

^ As shown by the buildlog, the building process failes when pip attempts to download packages from the internet.

Thank you very much.

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Colin Watson (cjwatson) said :
#1

PPA builds are indeed not permitted to download anything from the internet; sorry. The standard approach is to package each of your dependencies first and upload those to the same PPA, if they aren't already in Ubuntu; you can then build-depend on them.

(Snap builds (https://snapcraft.io/) have different constraints and are permitted a limited degree of internet access, but of course that entails a different package delivery mechanism.)

Can you help with this problem?

Provide an answer of your own, or ask Howard Liu for more information if necessary.

To post a message you must log in.