Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jul 2011 18:22:31 +0400
From:      Ruslan Mahmatkhanov <cvs-src@yandex.ru>
To:        Anton Shterenlikht <mexas@bristol.ac.uk>
Cc:        python@FreeBSD.org, freebsd-ports@freebsd.org
Subject:   Re: french/aster ignores PYTHON_VERSION= 2.6 ?
Message-ID:  <4E26E4A7.50207@yandex.ru>
In-Reply-To: <20110720134404.GA96487@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>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E26E4A7.50207>