[arch-general] Where to install python apps: /usr/lib/python2.6/site-packages/xyz??
Evangelos Foutras
foutrelis at gmail.com
Thu Mar 11 18:13:30 CET 2010
On 11/03/2010 06:27 μμ, David C. Rankin wrote:
> Guy,
>
> I know nothing about python other than what it is. I need to install
> repoview-0.6.5 on my arch server, but I'm not sure where. Looking at the other
> python apps like cairo, FusionIcon, etc.. thay seem to be installed as a
> subdirectory to:
>
> /usr/lib/python2.6/site-packages/
>
> The repoview directory contains:
>
> drwxr-xr-x 3 david david 4096 Feb 19 13:31 templates
> -rw-r--r-- 1 david david 3457 Feb 19 13:31 ChangeLog
> -rw-r--r-- 1 david david 18009 Mar 3 2005 COPYING
> -rw-r--r-- 1 david david 708 Jul 19 2007 README
> -rw-r--r-- 1 david david 2634 Sep 27 2007 repoview.8
> -rwxr-xr-x 1 david david 32932 Feb 19 13:31 repoview.py
>
> Do I just move the directory to /usr/lib/python2.6/site-packages/? Then is
> there something else I need to do to "register" (for lack of better words)
> repoview somewhere so python knows it is there? Then what about the man page?
> Anything special required to do I just move it to /usr/share/man or /usr/local/man?
I believe it's supposed to be run as a standalone script, so the best
place for it would be /usr/bin, with the templates under
/usr/share/repoview.
I made a simple package [1] for it. I cannot test it since it wants to
be run on an rpm repository, which I don't know how to make. Give it a
try and maybe adopt it if you're interested in maintaining it.
Generally /usr/lib/python-x.y/site-packages is used for Python packages
that consist of many files and behave as modules; mainly libraries, but
applications as well (which in turn install a start-up script under
/usr/bin).
Cheers.
----
[1] http://aur.archlinux.org/packages.php?ID=35377
More information about the arch-general
mailing list