[arch-general] Where to install python apps: /usr/lib/python2.6/site-packages/xyz??
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? -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com
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
On Thu, 11 Mar 2010 10:27:25 -0600 "David C. Rankin" <drankinatty@suddenlinkmail.com> 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?
You should use makepkg for it unless you are doing it in virtualenv. There already is a PKGBUILD for repoview in aur. http://aur.archlinux.org/packages.php?ID=35377
On Fri, Mar 12, 2010 at 10:06:59PM +0100, Øyvind Heggstad wrote:
On Thu, 11 Mar 2010 10:27:25 -0600 "David C. Rankin" <drankinatty@suddenlinkmail.com> 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?
You should use makepkg for it unless you are doing it in virtualenv.
There already is a PKGBUILD for repoview in aur. http://aur.archlinux.org/packages.php?ID=35377
The directory /usr/lib/pythonX.Y/site-packages is where you install Python *modules*, which are extensions to the Python library to be used by Python programs. The normal way to install them there is using the Python distutils and a 'setup.py' script. Python *applications* must *not* be installed there. They should go in /usr/bin just as any other executable, and preferably not have the .py extension. The fact that they are Python programs is irrelevant to the user. If a package provides both a Python application and some modules required to run it then each part must be installed in the appropriate place. Ciao, -- FA O tu, che porte, correndo si ? E guerra e morte !
On 03/12/2010 03:06 PM, Øyvind Heggstad wrote:
You should use makepkg for it unless you are doing it in virtualenv.
There already is a PKGBUILD for repoview in aur. http://aur.archlinux.org/packages.php?ID=35377
Thanks Everyone, I don't know how I missed the repoview in AUR, I had to get about 6 packages from AUR to build 'yum-createrepo' and I could have sworn I checked for repoview, but I guess I didn't. Also, as mentioned earlier in the thread, if anyone has packages like repoview that need to be run against a rpm repository that need testing, just let me know, I have several rpm repositories I maintain. Thanks. -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com
On 13/03/2010 11:27 πμ, David C. Rankin wrote:
I don't know how I missed the repoview in AUR, I had to get about 6 packages from AUR to build 'yum-createrepo' and I could have sworn I checked for repoview, but I guess I didn't.
Did you not receive my reply [1]? I clearly state that I uploaded a new package, so you wouldn't have found anything if you searched for repoview prior to this thread. --- [1] http://mailman.archlinux.org/pipermail/arch-general/2010-March/011947.html
On 03/13/2010 07:44 AM, Evangelos Foutras wrote:
On 13/03/2010 11:27 πμ, David C. Rankin wrote:
I don't know how I missed the repoview in AUR, I had to get about 6 packages from AUR to build 'yum-createrepo' and I could have sworn I checked for repoview, but I guess I didn't.
Did you not receive my reply [1]? I clearly state that I uploaded a new package, so you wouldn't have found anything if you searched for repoview prior to this thread.
--- [1] http://mailman.archlinux.org/pipermail/arch-general/2010-March/011947.html
Thanks Evangelos, I did miss it, must have been tired. See my thread "Something really wrong with createrepo.." Looks like you pulled the development version into the AUR package which I can't get to work. The stable version (4.11) works just fine, but has a few deprecation warnings. I do have a question, would the same patches apply to the stable version that you apply to the development version? -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com
On 14/03/2010 12:10 πμ, David C. Rankin wrote:
I did miss it, must have been tired. See my thread "Something really wrong with createrepo.." Looks like you pulled the development version into the AUR package which I can't get to work. The stable version (4.11) works just fine, but has a few deprecation warnings. I do have a question, would the same patches apply to the stable version that you apply to the development version?
Are you talking about the yum-createrepo [1] package? I have no clue what the deal with that is; I only uploaded a package for repoview [2] and as far as I can see, it doesn't pull in yum-createrepo. If you're having problems with the yum-createrepo package, add a comment on its AUR page to let its maintainer know. Cheers. :) ---- [1] http://aur.archlinux.org/packages.php?ID=22951 [2] http://aur.archlinux.org/packages.php?ID=35377
On 03/13/2010 04:38 PM, Evangelos Foutras wrote:
On 14/03/2010 12:10 πμ, David C. Rankin wrote:
I did miss it, must have been tired. See my thread "Something really wrong with createrepo.." Looks like you pulled the development version into the AUR package which I can't get to work. The stable version (4.11) works just fine, but has a few deprecation warnings. I do have a question, would the same patches apply to the stable version that you apply to the development version?
Are you talking about the yum-createrepo [1] package? I have no clue what the deal with that is; I only uploaded a package for repoview [2] and as far as I can see, it doesn't pull in yum-createrepo. If you're having problems with the yum-createrepo package, add a comment on its AUR page to let its maintainer know.
Cheers. :)
OK, will do, thanks :p -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com
participants (4)
-
David C. Rankin
-
Evangelos Foutras
-
fons@kokkinizita.net
-
Øyvind Heggstad