From owner-freebsd-python@FreeBSD.ORG  Tue Jul 26 17:25:35 2011
Return-Path: <owner-freebsd-python@FreeBSD.ORG>
Delivered-To: python@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 9C913106564A
	for <python@freebsd.org>; Tue, 26 Jul 2011 17:25:35 +0000 (UTC)
	(envelope-from mexas@bristol.ac.uk)
Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102])
	by mx1.freebsd.org (Postfix) with ESMTP id 56EB08FC18
	for <python@freebsd.org>; Tue, 26 Jul 2011 17:25:34 +0000 (UTC)
Received: from ncsc.bris.ac.uk ([137.222.10.41])
	by dirg.bris.ac.uk with esmtp (Exim 4.72)
	(envelope-from <mexas@bristol.ac.uk>)
	id 1Qll6m-0005g7-R9; Tue, 26 Jul 2011 18:08:03 +0100
Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241])
	by ncsc.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72)
	(envelope-from <mexas@bristol.ac.uk>)
	id 1Qll6J-0007gr-BD; Tue, 26 Jul 2011 18:07:23 +0100
Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1])
	by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4) with ESMTP id
	p6QH7NCI051345; Tue, 26 Jul 2011 18:07:23 +0100 (BST)
	(envelope-from mexas@bristol.ac.uk)
Received: (from mexas@localhost)
	by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4/Submit) id
	p6QH7MOD051344; Tue, 26 Jul 2011 18:07:22 +0100 (BST)
	(envelope-from mexas@bristol.ac.uk)
X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to
	mexas@bristol.ac.uk using -f
Date: Tue, 26 Jul 2011 18:07:22 +0100
From: Anton Shterenlikht <mexas@bristol.ac.uk>
To: Ruslan Mahmatkhanov <cvs-src@yandex.ru>
Message-ID: <20110726170722.GA47901@mech-cluster241.men.bris.ac.uk>
References: <20110720124017.GA94898@mech-cluster241.men.bris.ac.uk>
	<4E26D05F.908@yandex.ru>
	<20110720134404.GA96487@mech-cluster241.men.bris.ac.uk>
	<4E26E4A7.50207@yandex.ru>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4E26E4A7.50207@yandex.ru>
User-Agent: Mutt/1.4.2.3i
Cc: Anton Shterenlikht <mexas@bristol.ac.uk>, python@freebsd.org,
	freebsd-ports@freebsd.org
Subject: Re: french/aster ignores PYTHON_VERSION= 2.6 ?
X-BeenThere: freebsd-python@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: FreeBSD-specific Python issues <freebsd-python.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>, 
	<mailto:freebsd-python-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-python>
List-Post: <mailto:freebsd-python@freebsd.org>
List-Help: <mailto:freebsd-python-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>,
	<mailto:freebsd-python-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 26 Jul 2011 17:25:35 -0000

On Wed, Jul 20, 2011 at 06:22:31PM +0400, Ruslan Mahmatkhanov wrote:
> Anton Shterenlikht wrote on 20.07.2011 17:44:
> >On Wed, Jul 20, 2011 at 04:55:59PM +0400, Ruslan Mahmatkhanov wrote:
> 
> >>As far i understand PYTHON_VERSION hold value like 'python2.7', so you
> >>should correct this in your Makefile. Or just use USE_PYTHON = 2.6
> >
> >No, PYTHON_VERSION seems to be overwritten by something else.
> >I removed all but the PYTHON parts from the Makefile,
> >and get this:
> 
> 
> Yes, i see this in bsd.python.mk:
> # Define PYTHON_VERSION to override the
> # defaults that USE_PYTHON would give you.
> 
> But it seems not true. Here is my test Makefile:
> mrk@smeshariki2$ cat Makefile
> PORTNAME=	blah
> DISTVERSION=	1.0
> CATEGORIES=	misc
> COMMENT=	Some dumb port for testing
> 
> USE_PYTHON=	yes
> 
> .include <bsd.port.pre.mk>
> 
> .if ${ARCH} == "i386"
> PYTHON_VERSION=	"python2.6"
> .endif
> 
> .include <bsd.port.post.mk>
> 
> mrk@smeshariki2$ make depends
> ===>   blah-1.0 depends on file: /usr/local/bin/python2.7 - found
> ===>   blah-1.0 depends on file: /usr/local/bin/python2.7 - found
> 
> mrk@smeshariki2$ uname -p
> i386
> 
> I added python@ to cc, since it seems like bsd.python.mk bug to me (or 
> documentation bug).
> 
> -- 
> Regards,
> Ruslan

I've heard nothing back within a week.
Shall I submit a pr?

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423