From owner-freebsd-python@FreeBSD.ORG  Tue Jul 26 19:46:24 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 55FC81065676;
	Tue, 26 Jul 2011 19:46:24 +0000 (UTC)
	(envelope-from cvs-src@yandex.ru)
Received: from forward8.mail.yandex.net (forward8.mail.yandex.net
	[77.88.61.38]) by mx1.freebsd.org (Postfix) with ESMTP id F192B8FC18;
	Tue, 26 Jul 2011 19:46:23 +0000 (UTC)
Received: from smtp8.mail.yandex.net (smtp8.mail.yandex.net [77.88.61.54])
	by forward8.mail.yandex.net (Yandex) with ESMTP id F2781F63A14;
	Tue, 26 Jul 2011 23:46:21 +0400 (MSD)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
	t=1311709582; bh=KBgkWYq0PKlXMplmeyDxPfCsfpnNV3Vzp7ouGID/+x0=;
	h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References:
	In-Reply-To:Content-Type:Content-Transfer-Encoding;
	b=AqEf07rBTydNKnBPO158kNw0L8yOJffZ+Yf6gpXieUTxG3W9jquaR3ERoWl7buRnC
	m1le/qQQyvM6w1Lo88oG9ZpK/8yTUaG7YYJoo+AjGYznZArn/Q8YoClFEN1lOv36X2
	Hq10oN1iZlVnCjee8eONmTX5twy4yw6YRQcJ6zEY=
Received: from smeshariki2.local (unknown [178.76.212.172])
	by smtp8.mail.yandex.net (Yandex) with ESMTPSA id 995E44190078;
	Tue, 26 Jul 2011 23:46:21 +0400 (MSD)
Message-ID: <4E2F1989.5010109@yandex.ru>
Date: Tue, 26 Jul 2011 23:46:17 +0400
From: Ruslan Mahmatkhanov <cvs-src@yandex.ru>
User-Agent: Mozilla/5.0 (X11; FreeBSD i386;
	rv:5.0) Gecko/20110701 Thunderbird/5.0
MIME-Version: 1.0
To: Anton Shterenlikht <mexas@bristol.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>
	<20110726170722.GA47901@mech-cluster241.men.bris.ac.uk>
In-Reply-To: <20110726170722.GA47901@mech-cluster241.men.bris.ac.uk>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Yandex-Spam: 1
Cc: 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 19:46:24 -0000

Anton Shterenlikht wrote on 26.07.2011 21:07:
> 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?

I think so. Add Mk/bsd.python.mk to description field so it will be 
assigned to portmgr@.

-- 
Regards,
Ruslan