git: 9cb9ea7c0761 - main - Mk/Uses: Add new variable PY_TYPING_EXTENSIONS
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 05 May 2025 14:33:22 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=9cb9ea7c07617295fc66211ea9252609f09d0b54
commit 9cb9ea7c07617295fc66211ea9252609f09d0b54
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2025-05-05 12:04:32 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2025-05-05 14:33:05 +0000
Mk/Uses: Add new variable PY_TYPING_EXTENSIONS
devel/py-typing-extensions is a common dependency while the python
version is less than 3.11. To make things easier for committers add a
new var PY_TYPING_EXTENSIONS only when the python version is less than
3.11. This variable is not supposed to be used when typing-extensions is
a hard requirement irrespective of python versions.
---
Mk/Uses/python.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/Mk/Uses/python.mk b/Mk/Uses/python.mk
index ef2f8f92b796..d2b787504316 100644
--- a/Mk/Uses/python.mk
+++ b/Mk/Uses/python.mk
@@ -857,6 +857,7 @@ PY_SETUPTOOLS= ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAV
. if ${PYTHON_REL} < 31100
PY_EXCEPTIONGROUP= ${PYTHON_PKGNAMEPREFIX}exceptiongroup>=1.1.1:devel/py-exceptiongroup@${PY_FLAVOR}
PY_TOMLI= ${PYTHON_PKGNAMEPREFIX}tomli>=2.0.2<3:textproc/py-tomli@${PY_FLAVOR}
+PY_TYPING_EXTENSIONS= ${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR}
. endif
. if ${PYTHON_REL} >= 30000