Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jul 2011 14:44:04 +0100
From:      Anton Shterenlikht <mexas@bristol.ac.uk>
To:        Ruslan Mahmatkhanov <cvs-src@yandex.ru>
Cc:        Anton Shterenlikht <mexas@bristol.ac.uk>, freebsd-ports@freebsd.org
Subject:   Re: french/aster ignores PYTHON_VERSION= 2.6 ?
Message-ID:  <20110720134404.GA96487@mech-cluster241.men.bris.ac.uk>
In-Reply-To: <4E26D05F.908@yandex.ru>
References:  <20110720124017.GA94898@mech-cluster241.men.bris.ac.uk> <4E26D05F.908@yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jul 20, 2011 at 04:55:59PM +0400, Ruslan Mahmatkhanov wrote:
> Anton Shterenlikht wrote on 20.07.2011 16:40:
> >french/aster has in the Makefile:
> >
> >.if ${ARCH} == "amd64"
> ># python 2.7 causes process runaway
> >PYTHON_VERSION= 2.6
> >.endif
> >
> >I get the same on ia64, so I changed it to:
> >
> >.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
> ># python 2.7 causes process runaway
> >PYTHON_VERSION= 2.6
> >.endif
> >
> >But still 2.7 is used:
> >
> ># grep python ./work/aster-full-src-10.3.0/config.log
> >   /usr/local/bin/python2.7 setup.pyo test
> >#
> >
> >Why?
> >
> >Thanks
> >Anton
> >
> 
> 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:


# pwd
/usr/ports/french/aster

# cat Makefile
USE_BISON=      build
USE_PYTHON=     yes
HAS_CONFIGURE=  yes
REINPLACE_ARGS= -i ""


.include <bsd.port.pre.mk>

PYTHON_VERSION="python2.6"
USE_PYTHON = 2.6

test:
        echo ${PYTHON_VERSION}
        echo ${PYTHON_CMD}

# make test
echo python2.7
python2.7
echo /usr/local/bin/python2.7
/usr/local/bin/python2.7
# 


-- 
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



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