From owner-freebsd-stable@FreeBSD.ORG Tue May 1 18:49:46 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 544D116A403 for ; Tue, 1 May 2007 18:49:46 +0000 (UTC) (envelope-from richardtector@thekeelecentre.com) Received: from mx0.thekeelecentre.com (mx0.thekeelecentre.com [217.206.238.167]) by mx1.freebsd.org (Postfix) with ESMTP id 0D1D413C45E for ; Tue, 1 May 2007 18:49:45 +0000 (UTC) (envelope-from richardtector@thekeelecentre.com) Received: from localhost (mailfil.mx0.thekeelecentre.com [217.206.238.165]) by mx0.thekeelecentre.com (Postfix) with ESMTP id CD8DB41AE; Tue, 1 May 2007 19:49:44 +0100 (BST) X-Virus-Scanned: by amavisd-new at mx0.thekeelecentre.com Received: from mx0.thekeelecentre.com ([217.206.238.167]) by localhost (mailfil.mx0.thekeelecentre.com [217.206.238.165]) (amavisd-new, port 10024) with ESMTP id 4yqH2QLWHalZ; Tue, 1 May 2007 19:49:41 +0100 (BST) Received: from [217.206.238.190] (sylvester.tector.org.uk [217.206.238.190]) by mx0.thekeelecentre.com (Postfix) with ESMTP id BD13D40BD; Tue, 1 May 2007 19:49:41 +0100 (BST) Message-ID: <46378C44.5050202@thekeelecentre.com> Date: Tue, 01 May 2007 19:51:48 +0100 From: Richard Tector User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Daniel Mouritsen References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: Python 2.5 (and mod_python) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 May 2007 18:49:46 -0000 Daniel Mouritsen wrote: > Hi :) > > First off, I am still new to the ports package management system, so be > gentle if the following text contains dumb questions yeah? > > Okies, here goes. I installed python 2.5 from the lang/python25 port. And > then installed mod_python from www/mod_python3 > > during install mod_python bullied python 2.4.4 onto my system, and > complied > against it. After this the default python binary on my system was 2.4.4 , > and reinstalling 2.5 didn't help this. First off, how can i change this > back? (im guessing that just copying the python2.5 binary is not a good > idea, is there a command for choosing the default python interpreter) > > secondly, how come the mod_python installation didnt choose to use 2.5? i > looked in the makefile, and it uses a variable called PYTHON_CMD , > shudn't > python 2.5 have set this variable? It is because mod_python uses the lang/python port as a dependency. This by default installs version 2.4. If you uninstall your current mod_python and python 2.4, then set PYTHON_VERSION=python2.5 in make.conf, if you install lang/python or mod_python, it'll then install and use lang/python2.5. Hope that helps, Richard