Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Mar 2009 01:37:24 -0500
From:      Josh Paetzel <josh@tcbug.org>
To:        Chuck Robey <chuckr@telenix.org>
Cc:        freebsd-python@freebsd.org
Subject:   Re: upgrading
Message-ID:  <FEB1CBE4-4ACB-4501-92E0-7730757468D3@tcbug.org>
In-Reply-To: <49C51D87.7080103@telenix.org>
References:  <49C51D87.7080103@telenix.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On Mar 21, 2009, at 12:01 PM, Chuck Robey wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I've just decided to update my Pythonn skills.  First step was to  
> decide what
> version to base my learning effort on, and I decided on 2.6.  The  
> problem is, my
> FreeBSD python port level is 2.5.  I know perfectly well how to  
> build/install
> the python26 port, but a couple of questions first:
>
> 1 -- can python25 and python26 coexist, or should I consider  
> deleting the
> python25 port?
>

You can only have one symlink for /usr/local/bin/python  Other than  
that the two installs coexist just fine.  The real problem is the  
random py-whatever ports.  They select which python install to use  
based on PYTHON_VERSION, which is python2.5 unless overridden.  The  
problem comes when they don't drop everything in /usr/local/lib/ 
pythonX.Y/site-packages, but rather go in to /usr/local/bin or whatnot.

So the procedure I generally use is, install python 2.5, install all  
my py-whatever ports, install python 2.6, then set  
PYTHON_VERSION=python2.6 n /etc/make.conf, then go back in to the py- 
whatever port dirs and do a make clean install - 
DFORCE_PACKAGE_REGISTER  This needs some testing on your part to  
ensure the ports don't overlap or scribble on each other.  Hand  
mangling may be needed, or better yet, install the two versions in  
different jails or chroots.

> 2 -- is there some helper utility (perhaps part of some port) that  
> accomplishes
> the library compatibility updating, all of the other python updating  
> problems,
> for when you update?  I'd want to use such a tool for keeping my  
> python site-dir
> stuff done right.
>
> 3 -- what's the port which I need to have pre-installed, in order to  
> insure that
> python26 has tkinter working in it?
>

x11-toolkits/py-tkinter

> 4 -- if I want to use eclipse to write my code in python, is the  
> Pydev the
> correct eclipse plugin to use?
>
> Thanks, guys.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (FreeBSD)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAknFHYcACgkQz62J6PPcoOm0YwCeKyyivnzfPzzEpVxS/5CBp9gX
> VrgAnRgt69ym3/sbAKZgDqjzthhkVhNG
> =edXy
> -----END PGP SIGNATURE-----
> _______________________________________________
> freebsd-python@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-python
> To unsubscribe, send any mail to "freebsd-python-unsubscribe@freebsd.org 
> "

Thanks,

Josh Paetzel







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FEB1CBE4-4ACB-4501-92E0-7730757468D3>