summaryrefslogtreecommitdiff
path: root/Mk/Uses/python.mk
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2025-03-31 17:33:41 +0200
committerRene Ladan <rene@FreeBSD.org>2025-03-31 17:34:49 +0200
commitca15850a2b13f4fede0294d724e1d4a8edec8407 (patch)
tree9a8f4e945d66f7d11cdeb15349aded371e612770 /Mk/Uses/python.mk
parentMOVED: x11/terminator is still active (diff)
lang/python38: remove and unregister, it reached end-of-life in October 2024
This has to be done in one commit to avoid breaking INDEX
Diffstat (limited to 'Mk/Uses/python.mk')
-rw-r--r--Mk/Uses/python.mk14
1 files changed, 7 insertions, 7 deletions
diff --git a/Mk/Uses/python.mk b/Mk/Uses/python.mk
index 5159c006b9da..44131aa8589f 100644
--- a/Mk/Uses/python.mk
+++ b/Mk/Uses/python.mk
@@ -20,16 +20,16 @@
# USES=python:3.8+ # Supports Python 3.8 or later
# USES=python:3.8-3.10 # Supports Python 3.8 to 3.10
# USES=python:-3.8 # Supports Python up to 3.8
-# USES=python # Supports 3.8+
+# USES=python # Supports 3.9+
#
# 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 3.8+,
+# USES=python *without* a <version-spec> means 3.9+,
# 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
-# example: 2.7,3.8-3.9, but even in this case, X.Y+ (2.7+), or -X.Y (-3.8)
+# example: 2.7,3.8-3.9, but even in this case, X.Y+ (2.7+), or -X.Y (-3.9)
# is preferred and likely more correct.
#
# patch Python is needed at patch time. Adds dependency to PATCH_DEPENDS.
@@ -316,7 +316,7 @@ _INCLUDE_USES_PYTHON_MK= yes
# What Python version and what Python interpreters are currently supported?
# When adding a version, please keep the comment in
# Mk/bsd.default-versions.mk in sync.
-_PYTHON_VERSIONS= 3.11 3.10 3.9 3.8 2.7 # preferred first
+_PYTHON_VERSIONS= 3.11 3.10 3.9 2.7 # preferred first
_PYTHON_PORTBRANCH= 3.11 # ${_PYTHON_VERSIONS:[1]}
_PYTHON_BASECMD= ${LOCALBASE}/bin/python
_PYTHON_RELPORTDIR= lang/python
@@ -420,13 +420,13 @@ DEV_WARNING+= "lang/python27 reached End of Life and will be removed somewhere
. elif ${_PYTHON_ARGS} == 2
DEV_ERROR+= "USES=python:2 is no longer supported, use USES=python:2.7"
. elif ${_PYTHON_ARGS} == 3
-DEV_ERROR+= "USES=python:3 is no longer supported, use USES=python:3.8+ or an appropriate version range"
+DEV_ERROR+= "USES=python:3 is no longer supported, use USES=python:3.9+ or an appropriate version range"
. endif # ${_PYTHON_ARGS} == 2.7
_PYTHON_VERSION:= ${PYTHON_DEFAULT}
. if empty(_PYTHON_ARGS)
-_PYTHON_ARGS= 3.8+
+_PYTHON_ARGS= 3.9+
. endif
# Validate Python version whether it meets the version restriction.
@@ -528,7 +528,7 @@ PKGNAMESUFFIX= ${PYTHON_PKGNAMESUFFIX}
# To avoid having dependencies with @ and empty flavor:
# _PYTHON_VERSION is either set by (first that matches):
# - If using Python flavors, from the current Python flavor
-# - If using a version restriction (USES=python:3.8+), from the first
+# - If using a version restriction (USES=python:3.9+), from the first
# acceptable default Python version.
# - From PYTHON_DEFAULT
PY_FLAVOR= py${_PYTHON_VERSION:S/.//}