|
17 | 17 | # Examples: |
18 | 18 | # |
19 | 19 | # USES=python:2.7 # Supports Python 2.7 Only |
20 | | -# USES=python:3.9+ # Supports Python 3.9 or later |
21 | | -# USES=python:3.9-3.10 # Supports Python 3.9 to 3.10 |
22 | | -# USES=python:-3.9 # Supports Python up to 3.9 |
23 | | -# USES=python # Supports 3.9+ |
| 20 | +# USES=python:3.11+ # Supports Python 3.11 or later |
| 21 | +# USES=python:3.11-3.12 # Supports Python 3.11 to 3.12 |
| 22 | +# USES=python:-3.11 # Supports Python up to 3.11 |
| 23 | +# USES=python # Supports 3.10+ |
24 | 24 | # |
25 | 25 | # NOTE: <version-spec> should be as specific as possible, matching the versions |
26 | 26 | # upstream declares support for, without being incorrect. In particular, |
27 | | -# USES=python *without* a <version-spec> means 3.9+, |
| 27 | +# USES=python *without* a <version-spec> means 3.11+, |
28 | 28 | # including unreleased versions, which is probably incorrect. |
29 | 29 | # |
30 | 30 | # Not specifying a <version-spec> should only be used when a more specific |
31 | 31 | # <version-spec> cannot be specified due to syntax limitations, for |
32 | | -# example: 2.7,3.9-3.10, but even in this case, X.Y+ (2.7+), or -X.Y (-3.9) |
| 32 | +# example: 2.7,3.11-3.12, but even in this case, X.Y+ (2.7+), or -X.Y (-3.11) |
33 | 33 | # is preferred and likely more correct. |
34 | 34 | # |
35 | 35 | # patch Python is needed at patch time. Adds dependency to PATCH_DEPENDS. |
|
50 | 50 | # Exported variables: |
51 | 51 | # |
52 | 52 | # PYTHON_VERSION - The chosen Python interpreter including the version, |
53 | | -# e.g. python2.7, python3.9, etc. |
| 53 | +# e.g. python2.7, python3.11, etc. |
54 | 54 | # |
55 | 55 | # Variables, which can be set by the port: |
56 | 56 | # |
|
227 | 227 | # PYTHON_PORTSDIR - The port directory of the chosen Python interpreter |
228 | 228 | # |
229 | 229 | # PYTHON_REL - The release number of the chosen Python interpreter |
230 | | -# without dots, e.g. 20706, 30901, ... |
| 230 | +# without dots, e.g. 20706, 31114, ... |
231 | 231 | # |
232 | 232 | # PYTHON_SUFFIX - The major-minor release number of the chosen Python |
233 | | -# interpreter without dots, e.g. 27, 38, ... |
| 233 | +# interpreter without dots, e.g. 27, 310, ... |
234 | 234 | # Used for prefixes and suffixes. |
235 | 235 | # |
236 | 236 | # PYTHON_BASESUFFIX - PYTHON_SUFFIX without the threaded ABI flag. |
|
252 | 252 | # interpreter, e.g. 2, 3, ... |
253 | 253 | # |
254 | 254 | # PYTHON_VER - The major-minor release version of the chosen Python |
255 | | -# interpreter, e.g. 2.7, 3.9, ... |
| 255 | +# interpreter, e.g. 2.7, 3.12, ... |
256 | 256 | # |
257 | 257 | # PYTHON_BASEVER - PYTHON_VER without the threaded ABI flag. |
258 | 258 | # |
@@ -341,7 +341,7 @@ ZEROREGS_UNSAFE= yes |
341 | 341 | # What Python version and what Python interpreters are currently supported? |
342 | 342 | # When adding a version, please keep the comment in |
343 | 343 | # Mk/bsd.default-versions.mk in sync. |
344 | | -_PYTHON_VERSIONS= 3.11 3.12 3.10 3.9 2.7 # preferred first |
| 344 | +_PYTHON_VERSIONS= 3.11 3.12 3.13 3.13t 3.14 3.10 2.7 # preferred first |
345 | 345 | _PYTHON_PORTBRANCH= 3.11 # ${_PYTHON_VERSIONS:[1]} |
346 | 346 | _PYTHON_BASECMD= ${LOCALBASE}/bin/python |
347 | 347 | _PYTHON_RELPORTDIR= lang/python |
@@ -444,13 +444,13 @@ DEV_WARNING+= "lang/python27 reached End of Life and will be removed somewhere |
444 | 444 | . elif ${_PYTHON_ARGS} == 2 |
445 | 445 | DEV_ERROR+= "USES=python:2 is no longer supported, use USES=python:2.7" |
446 | 446 | . elif ${_PYTHON_ARGS} == 3 |
447 | | -DEV_ERROR+= "USES=python:3 is no longer supported, use USES=python:3.9+ or an appropriate version range" |
| 447 | +DEV_ERROR+= "USES=python:3 is no longer supported, use USES=python:3.11+ or an appropriate version range" |
448 | 448 | . endif # ${_PYTHON_ARGS} == 2.7 |
449 | 449 |
|
450 | 450 | _PYTHON_VERSION:= ${PYTHON_DEFAULT} |
451 | 451 |
|
452 | 452 | . if empty(_PYTHON_ARGS) |
453 | | -_PYTHON_ARGS= 3.9+ |
| 453 | +_PYTHON_ARGS= 3.10+ |
454 | 454 | . endif |
455 | 455 |
|
456 | 456 | # Validate Python version whether it meets the version restriction. |
@@ -552,7 +552,7 @@ PKGNAMESUFFIX= ${PYTHON_PKGNAMESUFFIX} |
552 | 552 | # To avoid having dependencies with @ and empty flavor: |
553 | 553 | # _PYTHON_VERSION is either set by (first that matches): |
554 | 554 | # - If using Python flavors, from the current Python flavor |
555 | | -# - If using a version restriction (USES=python:3.9+), from the first |
| 555 | +# - If using a version restriction (USES=python:3.11+), from the first |
556 | 556 | # acceptable default Python version. |
557 | 557 | # - From PYTHON_DEFAULT |
558 | 558 | PY_FLAVOR= py${_PYTHON_VERSION:S/.//} |
|
0 commit comments