From owner-freebsd-python@freebsd.org  Wed Jan 17 06:37:23 2018
Return-Path: <owner-freebsd-python@freebsd.org>
Delivered-To: freebsd-python@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id D17AAE7F780
 for <freebsd-python@mailman.ysv.freebsd.org>;
 Wed, 17 Jan 2018 06:37:23 +0000 (UTC)
 (envelope-from bugzilla-noreply@freebsd.org)
Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3])
 by mx1.freebsd.org (Postfix) with ESMTP id B1D647F6B4
 for <freebsd-python@freebsd.org>; Wed, 17 Jan 2018 06:37:23 +0000 (UTC)
 (envelope-from bugzilla-noreply@freebsd.org)
Received: by mailman.ysv.freebsd.org (Postfix)
 id AE0CCE7F77A; Wed, 17 Jan 2018 06:37:23 +0000 (UTC)
Delivered-To: python@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id ADB67E7F779
 for <python@mailman.ysv.freebsd.org>; Wed, 17 Jan 2018 06:37:23 +0000 (UTC)
 (envelope-from bugzilla-noreply@freebsd.org)
Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org
 [IPv6:2001:1900:2254:206a::19:3])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client CN "mxrelay.ysv.freebsd.org",
 Issuer "Let's Encrypt Authority X3" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id 94A7C7F6B3
 for <python@FreeBSD.org>; Wed, 17 Jan 2018 06:37:23 +0000 (UTC)
 (envelope-from bugzilla-noreply@freebsd.org)
Received: from kenobi.freebsd.org (kenobi.freebsd.org
 [IPv6:2001:1900:2254:206a::16:76])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 89EF912080
 for <python@FreeBSD.org>; Wed, 17 Jan 2018 06:37:23 +0000 (UTC)
 (envelope-from bugzilla-noreply@freebsd.org)
Received: from kenobi.freebsd.org ([127.0.1.118])
 by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w0H6bNIS044997
 for <python@FreeBSD.org>; Wed, 17 Jan 2018 06:37:23 GMT
 (envelope-from bugzilla-noreply@freebsd.org)
Received: (from www@localhost)
 by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w0H6bNMm044994
 for python@FreeBSD.org; Wed, 17 Jan 2018 06:37:23 GMT
 (envelope-from bugzilla-noreply@freebsd.org)
X-Authentication-Warning: kenobi.freebsd.org: www set sender to
 bugzilla-noreply@freebsd.org using -f
From: bugzilla-noreply@freebsd.org
To: python@FreeBSD.org
Subject: [Bug 224024] DEFAULT_VERSIONS for python and PYTHON_VERSION broken
 after r455210 (FLAVORS)
Date: Wed, 17 Jan 2018 06:37:20 +0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: Ports & Packages
X-Bugzilla-Component: Ports Framework
X-Bugzilla-Version: Latest
X-Bugzilla-Keywords: 
X-Bugzilla-Severity: Affects Some People
X-Bugzilla-Who: dbn@FreeBSD.org
X-Bugzilla-Status: New
X-Bugzilla-Resolution: 
X-Bugzilla-Priority: ---
X-Bugzilla-Assigned-To: portmgr@FreeBSD.org
X-Bugzilla-Flags: 
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-224024-21822-xGGMID15kI@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-224024-21822@https.bugs.freebsd.org/bugzilla/>
References: <bug-224024-21822@https.bugs.freebsd.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-BeenThere: freebsd-python@freebsd.org
X-Mailman-Version: 2.1.25
Precedence: list
List-Id: FreeBSD-specific Python issues <freebsd-python.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-python>, 
 <mailto:freebsd-python-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-python/>
List-Post: <mailto:freebsd-python@freebsd.org>
List-Help: <mailto:freebsd-python-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-python>,
 <mailto:freebsd-python-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Jan 2018 06:37:23 -0000

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224024

David Naylor <dbn@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dbn@FreeBSD.org

--- Comment #16 from David Naylor <dbn@FreeBSD.org> ---
I would like to add my 2c on PYTHON_VERSION:=20

There are, I think, two situations where PYTHON_VERSION adds functionality =
that
FLAVORS does not provide:
 - if a port supports multiple versions of python but does not support FLAV=
ORS
(for example end user programs[1]).=20=20
 - if a port supports multiple versions of python but is only a consumer of
python (be it for building or for support scripts at runtime)

In both these cases if someone wants to use a different version of python,
without changing the default version of python, then PYTHON_VERSION is the
recommended (and currently supported) way.=20=20

I do, however, think FLAVORS and PYTHON_VERSION need to be enhanced,
specifically:
 - setting PYTHON_VERSION then forces the default FLAVOR, and
 - setting PYTHON_VERSION outside the range of FLAVORS gets that version ad=
ded
to FLAVORS

Alternatively, we need to drop support for using using non-default versions=
 of
python (and correctly handle when a port does not support a default version=
).

[1] See the discussion around textproc/meld:
https://lists.freebsd.org/pipermail/svn-ports-head/2018-January/165377.html

--=20
You are receiving this mail because:
You are on the CC list for the bug.=