Creating packages of python

Magnus Therning magnus at therning.org
Thu Aug 11 20:52:17 UTC 2005


On Thu, Aug 11, 2005 at 08:07:44AM -0400, Eric S. Johansson wrote:
>Magnus Therning wrote:
>>I have packaged a few pure python programs, feel free to take a look at
>>them:
>> http://therning.org/magnus/computer/apt-repo/
>> http://therning.org/magnus_apt/
>
>interesting.  I'm interested in packaging a Python program as well.

Well, enjoy ;-)

>>How is the package built? distutils or a plain makefile?
>
>neither.  Since it is a standalone application, it is not appropriate
>to use distutils.  I use a shell script to install and do initial
>configuration.

Why isn't distutils appropriate? I've packaged applications using it,
it's even quite easy...

The drawback using a shell script is that it doesn't offer much
flexibility to the person installing. If you do provide flexibility in a
shell script then it quickly becomes big and complicated and you'd be
better off using distutils (or auto-tools).

>Makefiles aren't appropriate because all they would do would be to take
>a shell script and reduce it to something incomprehensible.

Makefiles don't have to be incomprehensible. They easily get that way,
but they don't have to be.

I'd love to take a look at the shell script... can I download your
software somewhere?

>>CDBS is by far the most simple way of packaging, but it is generally a
>>good idea to first package something using dh_* the first time out, just
>>to gain some understanding of what is going on.
>
>what you say is true if you buy into the autoconfig world.  However, it
>would be nice if they were support for those of us that prefer
>different build solutions.  Maybe there is and I just don't know it.
>It would be nice to find out I was wrong.

I suppose you are saying that CDBS makes autoconfiscated programs easy
to install, since then you'd be correct :-)

/M

-- 
Magnus Therning                    (OpenPGP: 0xAB4DFBA4)
magnus at therning.org
http://therning.org/magnus

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

To the consumer, cryptography is a shadowy protective entity --
something like Batman -- kind of menacing but on the side of justice,
and endowed with mystic powers.
     -- Bruce Schneier, Secrets and Lies
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050811/5c089f37/attachment.sig>


More information about the ubuntu-users mailing list