Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[SOLVED]Gentoo always purging my custom python applications

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
drseergio
Apprentice
Apprentice
Posts: 236
Joined: Wed Sep 28, 2005 12:45 pm

[SOLVED]Gentoo always purging my custom python applications

  • Quote

Post by drseergio » Sun Mar 01, 2009 2:17 pm

I am using few applications outside of portage. One of such applications is calibre, I install it by issuing:

Code: Select all

wget -O- http://calibre.kovidgoyal.net/downloads/calibre-0.4.141.tar.gz | tar xvz 
cd calibre*
sudo python setup.py build && sudo python setup.py install
sudo calibre_postinstall
However, once in a while the installation gets corrupted by Python. I see this:

Code: Select all

...
 * Cleaning orphaned Python bytecode from /usr/lib/python2.5/site-packages ..
 * Purging /usr/lib/python2.5/site-packages/calibre-0.4.141-py2.5-linux-i686.egg/odf/xforms.py[co]
...
So the application gets removed. Is there a way to avoid this?
Last edited by drseergio on Sat Mar 07, 2009 12:18 am, edited 1 time in total.
Top
nixnut
Bodhisattva
Bodhisattva
User avatar
Posts: 10974
Joined: Fri Apr 09, 2004 1:43 pm
Location: the dutch mountains

  • Quote

Post by nixnut » Sun Mar 01, 2009 2:28 pm

1. make an ebuild for it so portage knows it exists
2. install it somewhere else and add that path to the python path environment variable when you run python stuff that needs those files
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Top
drseergio
Apprentice
Apprentice
Posts: 236
Joined: Wed Sep 28, 2005 12:45 pm

  • Quote

Post by drseergio » Sun Mar 01, 2009 3:12 pm

1. Well, there is an ebuild already which is way too outdated and I understand why - is not worth it at this point since it's updated almost every week.

2. Isn't it possible to install it in the same path but somehow notify python that it is not an "orphan" and pretty much welcomed on this system? It is basically working until Python starts cleaning up stuff it thinks is loose.
Top
alistair
Retired Dev
Retired Dev
User avatar
Posts: 869
Joined: Fri Jul 15, 2005 12:53 am

  • Quote

Post by alistair » Sun Mar 01, 2009 11:04 pm

drseergio wrote:1. Well, there is an ebuild already which is way too outdated and I understand why - is not worth it at this point since it's updated almost every week.
From what ive seen it shouldn't be difficult to bump it every couple of weeks.

cp <old> <new>
ebuild <new> manifest

profit.
drseergio wrote: 2. Isn't it possible to install it in the same path but somehow notify python that it is not an "orphan" and pretty much welcomed on this system? It is basically working until Python starts cleaning up stuff it thinks is loose.
No. and you shouldn't be installing packages into /usr anyway. /usr/local is for non-package-manager files, everything else should be expected to be under the control of a package manager.
______________
Help the gentoo-java project. Visit Gentoo Java Project

what good are admin powers if you don't abuse them for personal gain - mark_alec
Top
drseergio
Apprentice
Apprentice
Posts: 236
Joined: Wed Sep 28, 2005 12:45 pm

  • Quote

Post by drseergio » Mon Mar 02, 2009 11:59 am

Right, well, that makes sense now. Thanks for pointing out!
Top
Naib
Watchman
Watchman
User avatar
Posts: 6101
Joined: Fri May 21, 2004 9:42 pm
Location: Removed by Neddy
Contact:
Contact Naib
Website

  • Quote

Post by Naib » Mon Mar 02, 2009 5:12 pm

yer make a local ebuild, having things under packagemanager control (esp when gentoo makes it sooo easy) brings loads of benefits
#define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0;
Top
cwr
Veteran
Veteran
Posts: 1969
Joined: Sat Dec 17, 2005 11:17 am

  • Quote

Post by cwr » Tue Mar 03, 2009 1:59 pm

You can lock stuff in place with "packages.provided", but I think you need an
ebuild to do that.

Will
Top
drseergio
Apprentice
Apprentice
Posts: 236
Joined: Wed Sep 28, 2005 12:45 pm

  • Quote

Post by drseergio » Sat Mar 07, 2009 12:14 am

Thanks for point out, guys. I have made an ebuild for the application, though it is not working yet but that's offtopic here. Conclusion = avoid custom python installs in the root.
Top
Post Reply

8 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic