Re: can I package a distutil based python app in deb?

On 06/26/2011 07:59 PM, hackingKK wrote:
Hello all,
I guess the subject line says it all.
I want to package a python app to deb.
I have 3 interesting issues with it.
1, I would want it to run on Ubuntu 10.04, Ubuntu 10.10, Ubuntu 11.04
and Debian 5.
2, the package depends on another python package which is also distutil
3, The second package needs to run in a virtual environment.
This means that I not only have to figure out the dependencies but also
have the deb to include a script to get the virtual environment script,
then create one for the package, then download all dependencies (Pylons
0.9.7 in this case along with report lab) and finally put the package
into this virtual environment.
Is this all possible?

Yes, it is possible. Refer to <>,
particularly the New Maintainer's Guide:


Relevant Pages

  • Re: apt dying with "Failed to exec method /usr/lib/apt/methods/"
    ... deb unstable main contrib non-free ... #deb squeeze-updates main ... Presumably it gets automatically generated based on new package info ... then I decided to try plain apt-get update ...
  • APT Strange Behaviour (Priorities)
    ... deb etch/updates main contrib non-free ... Pin: version 1.5.0-08-1.1 ... Pin-Priority: 1001 ... Package: sun-java5-demo ...
  • Re: Lost all my recipes
    ... Core and Redhat derived distributions. ... Both RPM and .deb are available on SourceForge. ... about a minute to download and install, ... by SPM I meant Synaptic Package Manager. ...
  • pinning not working
    ... deb lenny/updates main contrib non-free ... deb sid main contrib non-free ... Package: * ...
  • Aptitude, upgrade and pinning
    ... deb testing main contrib non-free ... deb-src testing main contrib non-free ... Package: * ... Pin-Priority: 990 ...