where do my python files go in linux?

Jorgen Bodde jorgen.maillist at gmail.com
Wed Jan 16 10:02:56 CET 2008


Hi All,

Sorry for the late reply back, I had a busy weekend ... it seems there
is no clear way to do it and maybe that is why I was / am so confused.

Eventually I searched for *.py files, and like I said most apps seem
to install in /usr/share/{app} I believe that location is for data
only that is shared between users. But for simplicity's sake I put my
whole python application in there. It saves me setting a lot of paths
differently.

I made a symbolic link in /usr/bin that points to /usr/share/{app}/{app}.py

This all seems to work fine. When I am getting more experienced with
Debian / Ubuntu and linux overall, I will re-evaluate this and see if
I can improve it.

Thanks all for your answer,
- Jorgen

On Jan 14, 2008 4:30 PM, Nick Craig-Wood <nick at craig-wood.com> wrote:
> 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
> --
>
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list