On Oct 8, 2006, at 2:45 PM, Alexander K. Hansen wrote:

>
>
>
>
> On Sun, October 8, 2006 4:12 pm, Iain Day wrote:
>> Hi,
>>
>> A quick question about python installed from Fink. I have the  
>> python24
>> package installed (using the unstable tree on PPC (0.8.1)). This
>> installed a /sw/bin/python24 binary. How do I get a /sw/bin/python
>> program? I tried installed the python package, but this wanted to
>> install python25 etc. I didn't go ahead with this, incase it broke
>> things like scipy and matplotlib.
>>
>> Any thoughts?
>>
>> Thanks,
>>
>> Iain
>>
>>
>
> The "python" package points to whatever the latest version of python
> available in the trees you have turned on--so for 10.4/unstable that's
> python25.
>
> It shouldn't break your scipy-py24 and matplotlib-py24.  Fink  
> allows for
> multiple Python versions and modules for each.
>
> -- 
> Alexander K. Hansen
> (akh)
> Fink Documenter
>

Iain,
here are some possibilities I could think of:
I also wanted to keep my /sw/bin/python to point to python24 and was  
able to do this by first uninstalling the current python package, and  
then digging up a previously installed deb file with the correct  
version, using something like the following:
sudo dpkg -i /sw/fink/debs/python_2.4.xxx (your desired version, if  
it exists as a deb file)

Alternatively (if you don't have a prior deb file of the 2.4 python),  
it should also be possible to get the 2.4 version from the binary  
distribution by
sudo apt-get install python
(version 2.4 is the current version in the binary tree). Or use sudo  
dselect to do the same thing.

Of course, you could also create an alias; but that's probably not  
what you want because it doesn't work with scripts that start with #!/ 
usr/bin/env python. Instead, if none of this suits you, I guess one  
could prepend a directory like ~/bin to your PATH (before /sw/bin)  
and put a file ~/bin/python in there which is a symbolic link to /sw/ 
bin/python24. That's not very pretty, though.

Hope this helps,
Jens



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to