french/aster ignores PYTHON_VERSION= 2.6 ?
Ruslan Mahmatkhanov
cvs-src at yandex.ru
Wed Jul 20 14:41:13 UTC 2011
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 at 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 at 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 at smeshariki2$ uname -p
i386
I added python@ to cc, since it seems like bsd.python.mk bug to me (or
documentation bug).
--
Regards,
Ruslan
More information about the freebsd-python
mailing list