Date: Thu, 4 Feb 2021 14:35:23 +0000 (UTC) From: Mathieu Arnold <mat@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r564032 - head/Mk/Uses Message-ID: <202102041435.114EZNUn002556@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mat Date: Thu Feb 4 14:35:22 2021 New Revision: 564032 URL: https://svnweb.freebsd.org/changeset/ports/564032 Log: Make USES=python without argument mean 3.6+. This is getting us one step further to deorbitting Python 2.7. Reviewed by: rene, antoine, swills Differential Revision: https://reviews.freebsd.org/D28459 Modified: head/Mk/Uses/python.mk Modified: head/Mk/Uses/python.mk ============================================================================== --- head/Mk/Uses/python.mk Thu Feb 4 14:35:00 2021 (r564031) +++ head/Mk/Uses/python.mk Thu Feb 4 14:35:22 2021 (r564032) @@ -22,12 +22,12 @@ # USES=python:3.6+ # Supports Python 3.6 or later # USES=python:3.6-3.9 # Supports Python 3.6 to 3.9 # USES=python:-3.8 # Supports Python up to 3.8 -# USES=python # Supports any/all Python versions +# USES=python # Supports 3.6+ # # NOTE: <version-spec> should be as specific as possible, matching the versions # upstream declares support for, without being incorrect. In particular, -# USES=python *without* a <version-spec> means any and all past or future -# versions, including unreleased versions, which is probably incorrect. +# USES=python *without* a <version-spec> means 3.6+, +# including unreleased versions, which is probably incorrect. # # Not specifying a <version-spec> should only be used when a more specific # <version-spec> cannot be specified due to syntax limitations, for @@ -333,6 +333,10 @@ DEV_ERROR+= "USES=python:3 is no longer supported, us .endif # ${_PYTHON_ARGS} == 2.7 _PYTHON_VERSION:= ${PYTHON_DEFAULT} + +.if empty(_PYTHON_ARGS) +_PYTHON_ARGS= 3.6+ +.endif # Validate Python version whether it meets the version restriction. _PYTHON_VERSION_CHECK:= ${_PYTHON_ARGS:C/^([1-9]\.[0-9])$/\1-\1/}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202102041435.114EZNUn002556>