From owner-freebsd-python@FreeBSD.ORG Wed Mar 25 06:56:20 2009 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E33D1065670 for ; Wed, 25 Mar 2009 06:56:20 +0000 (UTC) (envelope-from josh@tcbug.org) Received: from out3.smtp.messagingengine.com (out3.smtp.messagingengine.com [66.111.4.27]) by mx1.freebsd.org (Postfix) with ESMTP id 74E708FC1A for ; Wed, 25 Mar 2009 06:56:20 +0000 (UTC) (envelope-from josh@tcbug.org) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 720DD2FD5F8; Wed, 25 Mar 2009 02:37:26 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Wed, 25 Mar 2009 02:37:26 -0400 X-Sasl-enc: f8lEUdUBqAsySpexYk+rHnkBqaKGRgWtTchFxP5RVsAY 1237963046 Received: from [10.0.1.4] (c-66-41-132-62.hsd1.mn.comcast.net [66.41.132.62]) by mail.messagingengine.com (Postfix) with ESMTPSA id 0B63953B84; Wed, 25 Mar 2009 02:37:25 -0400 (EDT) Message-Id: From: Josh Paetzel To: Chuck Robey In-Reply-To: <49C51D87.7080103@telenix.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.4) Date: Wed, 25 Mar 2009 01:37:24 -0500 References: <49C51D87.7080103@telenix.org> X-Mailer: Apple Mail (2.930.4) Cc: freebsd-python@freebsd.org Subject: Re: upgrading X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Mar 2009 06:56:20 -0000 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