From owner-freebsd-python@FreeBSD.ORG Thu Sep 25 16:13:49 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 B3B12456 for ; Thu, 25 Sep 2014 16:13:49 +0000 (UTC) Received: from smtprelay05.ispgateway.de (smtprelay05.ispgateway.de [80.67.31.100]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 702989B0 for ; Thu, 25 Sep 2014 16:13:48 +0000 (UTC) Received: from [89.182.205.32] (helo=localhost) by smtprelay05.ispgateway.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1XXBfn-0007mK-NL; Thu, 25 Sep 2014 18:13:39 +0200 Date: Thu, 25 Sep 2014 18:13:40 +0200 From: Marcus von Appen To: Axel Rau Subject: Re: Building for python3 instead of python2 Message-ID: <20140925161340.GA1020@medusa.sysfault.org> Reply-To: Marcus von Appen Mail-Followup-To: Axel Rau , freebsd-python@FreeBSD.org References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mP3DRpeJDSE+ciuQ" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Df-Sender: MTEyNTc0Mg== Cc: freebsd-python@FreeBSD.org 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 16:13:49 -0000 --mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On, Thu Sep 25, 2014, Axel Rau wrote: > Hi all, > > 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. You are telling the system that the python_3_ interpreter shall use 3.4, but not that the general python interpreter shall use it, thus it sticks to 2.7. DEFAULT_VERSIONS= python:3.4 python3:3.4 should enable this. You may want to reinstall lang/python and lang/python3 after setting this, so that /usr/local/bin/python links to python3.4. Cheers Marcus --mP3DRpeJDSE+ciuQ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlQkPzQACgkQi68/ErJnpkc09QCglET0piR6PJIYtiZkhxdKZ8+X GUgAoMbR0Ey19rrWR/maqbXp+jTq+ddX =YWBc -----END PGP SIGNATURE----- --mP3DRpeJDSE+ciuQ--