-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday, July 11, 2002, at 09:18 , Erik Price wrote:

>
> On Thursday, July 11, 2002, at 08:50  PM, Brendan Lane Larson wrote:
>
>> Also, I would prefer to control and use my own (/usr/local) version of 
>> Python. Can I merely un-install the version of Python in /sw ... and 
>> let my environment path variables direct all requests for Python usage 
>> to my own controlled install in /usr/local?
>
> You can rearrange your PATH so that it checks /usr/local/ before it 
> checks anything in /sw/.  Back up the /sw/bin/init.*h (depends on 
> whether you use sh-style or csh-style shell, I use bash so for me 
> that's /sw/bin/init.sh) and then copy it, changing the part where your 
> PATH is defined with the /sw/ stuff first (so that /usr/local/ comes 
> before it).
>
> HOWEVER... this has some pretty far-reaching effects on your system 
> that you might wish to consider.  Namely, any executables in 
> /usr/local/ will be preferred over those in /sw/*, so if you have some 
> common names, it could be a problem.
>
> An alternative to doing this is to alias "python" in one of your 
> rc-files.  In bash, add this line to .bashrc (not sure how to do it in 
> tcsh):
>
> alias python=/usr/local/bin/python
>
> or whatever your path to python is.  Now every time your shell sees 
> "python" it internally rewrites the reference to an absolute path to 
> the /usr/local/ one.

I wonder how this would affect scripts that have

#! /usr/bin/env python

as their first line though?  He can't uninstall python, or it'll cause 
dependency issues.  If he really isn't going to use the fink version, it 
shouldn't hurt anything to just "rm /sw/bin/python" and if he wants to 
experiment to determine the differences, he can always explicitly call 
python2.2

jpb
- --
Joe Block <[EMAIL PROTECTED]>

A crash reduces
your expensive computer
to a simple stone.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Darwin)

iD8DBQE9MGWOyEXo8W2M9hsRAjnoAKCJPvJ6/laKcyG/1QLbnUxkdX756ACcC7dt
l2UCMeC1V6AVLx8D/RVaqhU=
=Q7IN
-----END PGP SIGNATURE-----



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to