On Sun, 2006-06-18 at 04:52 +0200, Josselin Mouette wrote:
> The upcoming python-support 0.3 will include an improved dh_pysupport
> script which should make packaging straightforward, by moving the
> files from standard places to python-support places and adding
> required dependencies automatically.
> 
> But you're right, an example should be included.

Thanks for the documentation. I will make deciding between
python-support and python-central easier. The whole thing does seem to
be a little of a mess, especially regarding these:
http://blogs.turmzimmer.net/2006/06/20#pycentral
http://kitenet.net/~joey/blog/entry/on_forking_debhelper.html

I'm not sure what to make of these as I don't really have time to read
the whole python-support vs python-central flamewar on debian-python.

> > I'm packaging a simple python application (webcheck) but most
> > documentation (and stuff on the mailing list) is about public modules
> > and extensions. I also ship a symlink in /usr/bin:
> >   /usr/bin/webcheck -> ../lib/python2.3/site-packages/webcheck/webcheck.py
> > what to do with it.
> 
> I think you should stop ship it as a symbolic link, as this way it
> cannot cope with major python upgrades. A better way would be to
> make /usr/bin/webcheck a very small script looking like:
> #! /usr/bin/python
> import webcheck
> webcheck.main()
> (I have no idea of the actual needed syntax, but I think you get the
> idea.)

I don't see what the problem is with the symbolic link. It has the nice
extra feature that you don't have to play around with sys.path to get
the imports simple.

I was planning on moving the files to /usr/share/webcheck or somesuch
(also depending on the chosen packaging solution). The modules could
probably be used publicly but this is really untested and unsupported at
the moment.

Giving it some thought, should the symlink point
to /var/lib/python-support/python-2.x/webcheck.py for the current python
version (ugly solution)? Would packaging webcheck to have private
modules not cause this problem?

Thanks for your input.

-- 
-- arthur - [EMAIL PROTECTED] - http://people.debian.org/~adejong --

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to