| @@ -1,25 +1,25 @@ | | | @@ -1,25 +1,25 @@ |
1 | # $NetBSD: versioned_dependencies.mk,v 1.106 2024/04/30 11:12:04 wiz Exp $ | | 1 | # $NetBSD: versioned_dependencies.mk,v 1.107 2024/04/30 11:25:23 wiz Exp $ |
2 | # | | 2 | # |
3 | # This file determines which separate distribution of a Python | | 3 | # This file determines which separate distribution of a Python |
4 | # package is used as dependency, depending on the Python version | | 4 | # package is used as dependency, depending on the Python version |
5 | # used. | | 5 | # used. |
6 | # | | 6 | # |
7 | # === User-settable variables === | | 7 | # === User-settable variables === |
8 | # | | 8 | # |
9 | # PYTHON_VERSIONED_DEPENDENCIES | | 9 | # PYTHON_VERSIONED_DEPENDENCIES |
10 | # The Python package which should be added as a dependency. | | 10 | # The Python package which should be added as a dependency. |
11 | # | | 11 | # |
12 | # Possible values: OpenSSL Pillow cffi coverage cryptography dns pip setuptools setuptools_scm test | | 12 | # Possible values: OpenSSL Pillow cffi coverage cryptography dns setuptools setuptools_scm test |
13 | # Default: (nothing) | | 13 | # Default: (nothing) |
14 | # | | 14 | # |
15 | | | 15 | |
16 | .include "../../lang/python/pyversion.mk" | | 16 | .include "../../lang/python/pyversion.mk" |
17 | | | 17 | |
18 | # _PY_VERS_PKG.${PYTHON_VERSION}.${pkg} is the path used for the dependency | | 18 | # _PY_VERS_PKG.${PYTHON_VERSION}.${pkg} is the path used for the dependency |
19 | # for a specific Python version. This can be "missing", if this Python | | 19 | # for a specific Python version. This can be "missing", if this Python |
20 | # version is not supported for this package. | | 20 | # version is not supported for this package. |
21 | # | | 21 | # |
22 | # _PY_VERS_PKG.default.${pkg} is the fallback version if a specific version | | 22 | # _PY_VERS_PKG.default.${pkg} is the fallback version if a specific version |
23 | # isn't known. | | 23 | # isn't known. |
24 | # | | 24 | # |
25 | # _PY_VERS_PKG.dependency.${PKG} flags packages that need Rust-specific | | 25 | # _PY_VERS_PKG.dependency.${PKG} flags packages that need Rust-specific |
| @@ -35,29 +35,26 @@ _PY_VERS_PKG.27.Pillow= graphics/py-Pil | | | @@ -35,29 +35,26 @@ _PY_VERS_PKG.27.Pillow= graphics/py-Pil |
35 | _PY_VERS_PKG.default.cffi= devel/py-cffi | | 35 | _PY_VERS_PKG.default.cffi= devel/py-cffi |
36 | _PY_VERS_PKG.27.cffi= devel/py27-cffi | | 36 | _PY_VERS_PKG.27.cffi= devel/py27-cffi |
37 | | | 37 | |
38 | _PY_VERS_PKG.default.coverage= devel/py-coverage | | 38 | _PY_VERS_PKG.default.coverage= devel/py-coverage |
39 | _PY_VERS_PKG.27.coverage= devel/py27-coverage | | 39 | _PY_VERS_PKG.27.coverage= devel/py27-coverage |
40 | | | 40 | |
41 | _PY_VERS_PKG.default.cryptography= security/py-cryptography | | 41 | _PY_VERS_PKG.default.cryptography= security/py-cryptography |
42 | _PY_VERS_PKG.27.cryptography= security/py27-cryptography | | 42 | _PY_VERS_PKG.27.cryptography= security/py27-cryptography |
43 | _PY_VERS_PKG.dependency.cryptography= yes | | 43 | _PY_VERS_PKG.dependency.cryptography= yes |
44 | | | 44 | |
45 | _PY_VERS_PKG.default.dns= net/py-dns | | 45 | _PY_VERS_PKG.default.dns= net/py-dns |
46 | _PY_VERS_PKG.27.dns= net/py-dns1 | | 46 | _PY_VERS_PKG.27.dns= net/py-dns1 |
47 | | | 47 | |
48 | _PY_VERS_PKG.default.pip= devel/py-pip | | | |
49 | _PY_VERS_PKG.27.pip= devel/py-pip20 | | | |
50 | | | | |
51 | _PY_VERS_PKG.default.setuptools= devel/py-setuptools | | 48 | _PY_VERS_PKG.default.setuptools= devel/py-setuptools |
52 | _PY_VERS_PKG.27.setuptools= devel/py-setuptools44 | | 49 | _PY_VERS_PKG.27.setuptools= devel/py-setuptools44 |
53 | | | 50 | |
54 | _PY_VERS_PKG.default.setuptools_scm= devel/py-setuptools_scm | | 51 | _PY_VERS_PKG.default.setuptools_scm= devel/py-setuptools_scm |
55 | _PY_VERS_PKG.27.setuptools_scm= devel/py-setuptools_scm5 | | 52 | _PY_VERS_PKG.27.setuptools_scm= devel/py-setuptools_scm5 |
56 | | | 53 | |
57 | _PY_VERS_PKG.default.test= devel/py-test | | 54 | _PY_VERS_PKG.default.test= devel/py-test |
58 | _PY_VERS_PKG.27.test= devel/py-test4 | | 55 | _PY_VERS_PKG.27.test= devel/py-test4 |
59 | | | 56 | |
60 | .for pattern in ${PYTHON_VERSIONED_DEPENDENCIES} | | 57 | .for pattern in ${PYTHON_VERSIONED_DEPENDENCIES} |
61 | pkg:= ${pattern:C/:.*//} | | 58 | pkg:= ${pattern:C/:.*//} |
62 | type:= ${pattern:C/[^:]*//} | | 59 | type:= ${pattern:C/[^:]*//} |
63 | dir:= ${_PY_VERS_PKG.${_PYTHON_VERSION}.${pkg}:U${_PY_VERS_PKG.default.${pkg}:Umissing}} | | 60 | dir:= ${_PY_VERS_PKG.${_PYTHON_VERSION}.${pkg}:U${_PY_VERS_PKG.default.${pkg}:Umissing}} |