From owner-freebsd-ports@FreeBSD.ORG Sun Dec 28 16:28:39 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 77BD52CF for ; Sun, 28 Dec 2014 16:28:39 +0000 (UTC) Received: from mailhost.m5p.com (mailhost.m5p.com [IPv6:2001:418:3fd::f7]) (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 36DB86490B for ; Sun, 28 Dec 2014 16:28:39 +0000 (UTC) Received: from wonderland.m5p.com (localhost [IPv6:::1]) by mailhost.m5p.com (8.14.5/8.14.5) with ESMTP id sBSGSWV6001181 for ; Sun, 28 Dec 2014 11:28:37 -0500 (EST) (envelope-from george+freebsd@m5p.com) Message-ID: <54A02FB0.1080708@m5p.com> Date: Sun, 28 Dec 2014 11:28:32 -0500 From: George Mitchell User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: Python 3 doc? References: <549F52AD.4070900@m5p.com> <549F7ABF.4070007@ShaneWare.Biz> In-Reply-To: <549F7ABF.4070007@ShaneWare.Biz> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.73 on 10.100.0.3 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (mailhost.m5p.com [IPv6:::1]); Sun, 28 Dec 2014 11:28:37 -0500 (EST) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2014 16:28:39 -0000 On 12/27/14 22:36, Shane Ambler wrote: > On 28/12/2014 11:15, George Mitchell wrote: >> I have both python 2.7.8 and python 3.3.5 installed on my machine. When >> I build lang/python-doc-html, I end up with python-doc-html-2.7.8. Is >> it possible to also get python-doc-html-3.3.5 generated and installed >> somehow? -- George > > There are two settings that determine the version of python being used - > > DEFAULT_VERSIONS can be set in /etc/make.conf and will effect the > python version used for every port you build. This can also be used to > define other default versions, see /usr/ports/Mk/bsd.default-versions.mk > > DEFAULT_VERSIONS= python=3.3 > > You can also set PYTHON_VERSION in your environment before building to > only effect the one port. > > For csh/tcsh > setenv PYTHON_VERSION python3.3 > > for sh/bash > PYTHON_VERSION=python3.3;export PYTHON_VERSION > > That works -- as long as I am willing to deinstall the python 2.7.8 documentation first. I suppose I could create a package for the 2.7.8 documentation, "upgrade," and then circumvent the ports system to reinstall the old files by hand, but I was hoping not to have to do that. -- George