where do my python files go in linux?
Nick Craig-Wood
nick at craig-wood.com
Mon Jan 14 10:30:04 EST 2008
Paul Boddie <paul at boddie.org.uk> wrote:
> On 14 Jan, 08:47, "A.T.Hofkamp" <h... at se-162.se.wtb.tue.nl> wrote:
> >
> > Rather than re-inventing the wheel, please have a look at distutils:
> > http://docs.python.org/lib/module-distutils.html
> >
> > It does most if not all of the things you want to do.
> > If you want something more advanced, read about eggs.
>
> Although distutils does some of the work needed by the inquirer, it
> falls far short of what is needed to make a Debian package - that's
> why you have the "new" Debian Python policy and why the authors
> specifically refer to both distutils and setuptools in that document.
It would be nice to have an equivalent to dh-make-perl which takes a
CPAN module and makes a .deb directly.
http://packages.debian.org/stable/devel/dh-make-perl
What I usually do is
python setup.py bdist_rpm
Then use alien to convert the resulting .rpm into a .deb
I don't think these create particularly policy compliant .debs but
they are good enough for local usage.
> Meanwhile, even stdeb [1] doesn't appear to completely automate the
> production of Debian packages using distutils.
Looks interesting though!
> [1] http://stdeb.python-hosting.com/
--
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick
More information about the Python-list
mailing list