From owner-freebsd-python@FreeBSD.ORG Wed Jul 20 14:41:13 2011 Return-Path: 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 B2C95106566B for ; Wed, 20 Jul 2011 14:41:13 +0000 (UTC) (envelope-from cvs-src@yandex.ru) Received: from forward13.mail.yandex.net (forward13.mail.yandex.net [95.108.130.120]) by mx1.freebsd.org (Postfix) with ESMTP id 5C6CC8FC13 for ; Wed, 20 Jul 2011 14:41:13 +0000 (UTC) Received: from smtp11.mail.yandex.net (smtp11.mail.yandex.net [95.108.130.67]) by forward13.mail.yandex.net (Yandex) with ESMTP id EBBA0142B57; Wed, 20 Jul 2011 18:25:29 +0400 (MSD) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1311171930; bh=CYccbVxC1Sx6IVCClGyQWMsPClA5Fadpc3y49due044=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=s4D6upN3RZOL7GC0oyzoi1iuXDfPXjT2gKm+0JgzoHVIwJS3oThDdP0dFe4oy1wG3 0/UtELzd3B+5KDYUfYkGW0WA3nFNk7F4jYsQkQRCnvPh+kpPq/7HpM/ke+Qk34fyN3 kIuAS3ssqbE+0TwhpV7oS8LN26eTKux0CBSbe/iA= Received: from smeshariki2.local (unknown [213.27.65.65]) by smtp11.mail.yandex.net (Yandex) with ESMTPSA id 8931F4CC007A; Wed, 20 Jul 2011 18:25:29 +0400 (MSD) Message-ID: <4E26E4A7.50207@yandex.ru> Date: Wed, 20 Jul 2011 18:22:31 +0400 From: Ruslan Mahmatkhanov User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:5.0) Gecko/20110701 Thunderbird/5.0 MIME-Version: 1.0 To: Anton Shterenlikht References: <20110720124017.GA94898@mech-cluster241.men.bris.ac.uk> <4E26D05F.908@yandex.ru> <20110720134404.GA96487@mech-cluster241.men.bris.ac.uk> In-Reply-To: <20110720134404.GA96487@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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jul 2011 14:41:13 -0000 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 .if ${ARCH} == "i386" PYTHON_VERSION= "python2.6" .endif .include 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