From owner-freebsd-python@freebsd.org Wed May 18 03:09:41 2016 Return-Path: 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 2069AB40C4C for ; Wed, 18 May 2016 03:09:41 +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 0C2F312CD for ; Wed, 18 May 2016 03:09:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 0B7CBB40C4B; Wed, 18 May 2016 03:09:41 +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 0B20AB40C49 for ; Wed, 18 May 2016 03:09:41 +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 mx1.freebsd.org (Postfix) with ESMTPS id F038C12CC for ; Wed, 18 May 2016 03:09:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u4I39eg9059388 for ; Wed, 18 May 2016 03:09:40 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 209551] Python bits ignore DEFAULT_VERSIONS Date: Wed, 18 May 2016 03:09:41 +0000 X-Bugzilla-Reason: AssignedTo 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 Only Me X-Bugzilla-Who: iblis@hs.ntnu.edu.tw X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: 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.22 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2016 03:09:41 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209551 Iblis Lin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |iblis@hs.ntnu.edu.tw --- Comment #1 from Iblis Lin --- Hi, I will propose that reordering priorities of those variables -- ${LOCALBASE}/bin/python and DEFAULT_VERSION. The state quo: if ${LOCALBASE}/bin/python exists: priority: PYTHON_VERSION > ${LOCALBASE}/bin/python > DEFAULT_VERSIO= NS else: priority: PYTHON_VERSION > DEFAULT_VERSIONS I think make `DEFAULT_VERSIONS` override `${LOCALBASE}/bin/python` will be better: priority: PYTHON_VERSION > DEFAULT_VERSIONS > ${LOCALBASE}/bin/python The PYTHON_VERSION still has the highest priority. This variable is handy f= or installing same ports with different python version at the same time. For example, I need the `database/py-sqlite3` installed for both py27 and p= y35. I just simply issue make with `PYTHON_VERSION`: make install clean PYTHON_VERSION=3D2.7 && make install clean PYTHON_VERSION=3D3.5 So, preserving the flexibility to override default is necessary; PYTHON_VER= SION do it well currently. We just need to switch the order of 'local python' and DEFAULT_VERSION. --=20 You are receiving this mail because: You are the assignee for the bug.=