Forums

Skip to content

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

portage and python 2.4

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
bmeagle
n00b
n00b
User avatar
Posts: 56
Joined: Wed Nov 30, 2005 10:46 am
Location: South Africa

portage and python 2.4

  • Quote

Post by bmeagle » Wed Mar 31, 2010 12:11 am

I am setting up a separate installation with a separate root partition so that I can run salome in, currently salome is in the sunrise overlay. Salome recommends compiling against python 2.4.
Using eselect-python it is simple to switch to python 2.2 but then portage stops functioning and spits out errors.
Is there a way to use portage with python 2.4?

regards
Last edited by bmeagle on Wed Mar 31, 2010 12:25 am, edited 1 time in total.
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 » Wed Mar 31, 2010 12:19 am

I seriously doubt it, there were some nice things added to py2.4 (and thus 2.6)

Why on earth would you want it with py2.4
gentoo can slot if you want to have py2.4 and py2.6 on the same system
#define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0;
Top
bmeagle
n00b
n00b
User avatar
Posts: 56
Joined: Wed Nov 30, 2005 10:46 am
Location: South Africa

  • Quote

Post by bmeagle » Wed Mar 31, 2010 12:26 am

The only reason I want 2.4 as opposed to 2.6 is to be able to run salome, that's why I set up a separate installation.
Apologies for my initial confusion between 2.2 and 2.4, I meant 2.4.
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 » Wed Mar 31, 2010 12:31 am

install 2.4 and 2.6 side by side. This is one of gentoo's strengths
#define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0;
Top
bmeagle
n00b
n00b
User avatar
Posts: 56
Joined: Wed Nov 30, 2005 10:46 am
Location: South Africa

  • Quote

Post by bmeagle » Wed Mar 31, 2010 12:37 am

That is what I have done, I have both installed. Running portage when 2.4 is selected is the problem.
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 » Wed Mar 31, 2010 12:44 am

leave python2.6 selected as the default and change the shebang of this py2.4-only app from /usr/bin/python to /usr/bin/python2.4
#define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0;
Top
bmeagle
n00b
n00b
User avatar
Posts: 56
Joined: Wed Nov 30, 2005 10:46 am
Location: South Africa

  • Quote

Post by bmeagle » Wed Mar 31, 2010 12:52 am

I suppose that is the only way to go then.
Thanx
Top
dol-sen
Retired Dev
Retired Dev
User avatar
Posts: 2805
Joined: Sun Jun 30, 2002 2:44 pm
Location: Richmond, BC, Canada

  • Quote

Post by dol-sen » Wed Mar 31, 2010 6:57 am

Your only other alternative is to install and use pkgcore which can operate with python-2.4.
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Top
Ant P.
Watchman
Watchman
Posts: 6920
Joined: Sat Apr 18, 2009 7:18 pm
Contact:
Contact Ant P.
Website

  • Quote

Post by Ant P. » Wed Mar 31, 2010 7:45 am

...or Paludis, which doesn't need Python at all.
Top
Post Reply

9 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