Re: how to build with 2.4 having 2.6 as main python

2010-06-15 Thread Dan Stromberg
On Tue, Jun 15, 2010 at 4:26 PM, Benjamin Kaplan wrote: > On Tue, Jun 15, 2010 at 3:55 PM, Dan Stromberg > wrote: > > > > I don't think #!/usr/bin/env python is the right thing - unless a script > > really doesn't care much what version of python it gets. > > > > I used to #!/usr/bin/env everythi

Re: how to build with 2.4 having 2.6 as main python

2010-06-15 Thread Benjamin Kaplan
On Tue, Jun 15, 2010 at 3:55 PM, Dan Stromberg wrote: > > I don't think #!/usr/bin/env python is the right thing - unless a script > really doesn't care much what version of python it gets. > > I used to #!/usr/bin/env everything, but I've been updating my old scripts > not to.  It's just too much

Re: how to build with 2.4 having 2.6 as main python

2010-06-15 Thread Dan Stromberg
I don't think #!/usr/bin/env python is the right thing - unless a script really doesn't care much what version of python it gets. I used to #!/usr/bin/env everything, but I've been updating my old scripts not to. It's just too much trouble, despite the one minor simplification it provides. My Ub

Re: how to build with 2.4 having 2.6 as main python

2010-06-14 Thread Hans Mulder
Benjamin Kaplan wrote: On Mon, Jun 14, 2010 at 3:09 AM, Alexzive wrote: thanks guys, the solution for me was python2.4 setup.py install --prefix=/usr/local cheers, AZ Don't do that! Like Steven said, you'll kill your system that way. Lots of programs in Linux use Python and those programs

Re: how to build with 2.4 having 2.6 as main python

2010-06-14 Thread Benjamin Kaplan
On Mon, Jun 14, 2010 at 3:09 AM, Alexzive wrote: > thanks guys, > > the solution for me was > > python2.4 setup.py install --prefix=/usr/local > > cheers, AZ > Don't do that! Like Steven said, you'll kill your system that way. Lots of programs in Linux use Python and those programs expect /usr/bi

Re: how to build with 2.4 having 2.6 as main python

2010-06-14 Thread Alexzive
thanks guys, the solution for me was python2.4 setup.py install --prefix=/usr/local cheers, AZ On Jun 14, 11:00 am, Steven D'Aprano wrote: > On Mon, 14 Jun 2010 01:30:09 -0700, Alexzive wrote: > > what to change in order to get "python" calling python 2.4.3 instead of > > 2.6.4 (at least durin

Re: how to build with 2.4 having 2.6 as main python

2010-06-14 Thread Steven D'Aprano
On Mon, 14 Jun 2010 01:30:09 -0700, Alexzive wrote: > what to change in order to get "python" calling python 2.4.3 instead of > 2.6.4 (at least during python setup.py build)? That will do bad things to your system, which will be expecting the system Python to be 2.6 and instead will be 2.4. You

Re: how to build with 2.4 having 2.6 as main python

2010-06-14 Thread James Mills
On Mon, Jun 14, 2010 at 6:30 PM, Alexzive wrote: > what to change in order to get "python" calling python 2.4.3 instead > of 2.6.4 (at least during python setup.py build)? > > I suppose I need something like changing the link to /usr/local/bin/ > python.. > but I fear to do something bad by myself

Re: how to build with 2.4 having 2.6 as main python

2010-06-14 Thread Shashwat Anand
You can try a package : python_select On Mon, Jun 14, 2010 at 2:00 PM, Alexzive wrote: > Hello there, > > my Mandriva has the 2.6.4 python pre-installed (in /usr/lib64/ > python2.6/) > I need to install numpy 1.4 for python 2.4.3 (I installed it > separately from source on/usr/local/lib/python2.

how to build with 2.4 having 2.6 as main python

2010-06-14 Thread Alexzive
Hello there, my Mandriva has the 2.6.4 python pre-installed (in /usr/lib64/ python2.6/) I need to install numpy 1.4 for python 2.4.3 (I installed it separately from source on/usr/local/lib/python2.4/ ) but still typing "python" I get: Python 2.6.4 (r264:75706, Jan 8 2010, 18:59:59) [GCC 4.4.1] o