From owner-freebsd-python@FreeBSD.ORG Thu Sep 25 14:21:35 2014 Return-Path: Delivered-To: freebsd-python@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7CA4B611 for ; Thu, 25 Sep 2014 14:21:35 +0000 (UTC) Received: from forward3l.mail.yandex.net (forward3l.mail.yandex.net [IPv6:2a02:6b8:0:1819::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3A9BA5F9 for ; Thu, 25 Sep 2014 14:21:34 +0000 (UTC) Received: from smtp13.mail.yandex.net (smtp13.mail.yandex.net [95.108.130.68]) by forward3l.mail.yandex.net (Yandex) with ESMTP id 1E9141500F8E; Thu, 25 Sep 2014 18:21:24 +0400 (MSK) Received: from smtp13.mail.yandex.net (localhost [127.0.0.1]) by smtp13.mail.yandex.net (Yandex) with ESMTP id A0804E400D6; Thu, 25 Sep 2014 18:21:23 +0400 (MSK) Received: from 78.108.204.68.tel.ru (78.108.204.68.tel.ru [78.108.204.68]) by smtp13.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id t9bD8CBAN0-LNSGsIIJ; Thu, 25 Sep 2014 18:21:23 +0400 (using TLSv1.2 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: f3433bc8-f6b1-4348-a043-78f24e9d4b10 Message-ID: <542424E3.8070506@passap.ru> Date: Thu, 25 Sep 2014 18:21:23 +0400 From: Boris Samorodov Organization: =?UTF-8?B?0JfQkNCeICLQktCQ0KDQoiI=?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 MIME-Version: 1.0 To: Axel Rau , freebsd-python@FreeBSD.org Subject: Re: Building for python3 instead of python2 References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Sep 2014 14:21:35 -0000 Hi, Axel! 25.09.2014 18:07, Axel Rau пишет: > I have a port with > USES= python > but it insists installing python2.7 instead of installed python3.4 > I played with > DEFAULT_VERSIONS= python3:3.4 > without luck. > > Please advice. >From Mk/Uses/python.mk: ----- # Variables, which can be set by a user: # # PYTHON_VERSION - The chosen Python interpreter including the version, # e.g. python2.7, python3.3, etc. This allows the user # to override the currently chosen default version and # to install the port for a specific Python version. # It must not be set by a port. ----- Seems that a line "PYTHON_VERSION=python3.4" at /etc/make.conf may fit your needs. -- WBR, Boris Samorodov (bsam) FreeBSD Committer, http://www.FreeBSD.org The Power To Serve