Annotation of pkgsrc/lang/python/versioned_dependencies.mk, revision 1.103
1.103 ! wiz 1: # $NetBSD: versioned_dependencies.mk,v 1.102 2024/04/30 09:19:33 wiz Exp $
1.1 wiz 2: #
3: # This file determines which separate distribution of a Python
4: # package is used as dependency, depending on the Python version
5: # used.
6: #
7: # === User-settable variables ===
8: #
9: # PYTHON_VERSIONED_DEPENDENCIES
10: # The Python package which should be added as a dependency.
11: #
1.103 ! wiz 12: # Possible values: OpenSSL Pillow X cairo cffi coverage cryptography dns hypothesis pip setuptools setuptools_scm test
1.1 wiz 13: # Default: (nothing)
14: #
15:
16: .include "../../lang/python/pyversion.mk"
17:
1.90 joerg 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
20: # version is not supported for this package.
21: #
22: # _PY_VERS_PKG.default.${pkg} is the fallback version if a specific version
23: # isn't known.
24: #
25: # _PY_VERS_PKG.dependency.${PKG} flags packages that need Rust-specific
26: # handling.
27:
28: _PY_VERS_PKG.default.OpenSSL= security/py-OpenSSL
29: _PY_VERS_PKG.27.OpenSSL= security/py27-OpenSSL
30: _PY_VERS_PKG.dependency.OpenSSL= yes
31:
32: _PY_VERS_PKG.default.Pillow= graphics/py-Pillow
33: _PY_VERS_PKG.27.Pillow= graphics/py-Pillow6
34:
35: _PY_VERS_PKG.default.X= textproc/py-X
36: _PY_VERS_PKG.27.X= textproc/py-X2
37:
38: _PY_VERS_PKG.default.cairo= graphics/py-cairo
39: _PY_VERS_PKG.27.cairo= graphics/py-cairo118
40:
1.99 wiz 41: _PY_VERS_PKG.default.cffi= devel/py-cffi
42: _PY_VERS_PKG.27.cffi= devel/py27-cffi
43:
1.90 joerg 44: _PY_VERS_PKG.default.coverage= devel/py-coverage
45: _PY_VERS_PKG.27.coverage= devel/py27-coverage
46:
47: _PY_VERS_PKG.default.cryptography= security/py-cryptography
48: _PY_VERS_PKG.27.cryptography= security/py27-cryptography
49: _PY_VERS_PKG.dependency.cryptography= yes
50:
51: _PY_VERS_PKG.default.dns= net/py-dns
52: _PY_VERS_PKG.27.dns= net/py-dns1
53:
54: _PY_VERS_PKG.default.hypothesis= devel/py-hypothesis
55: _PY_VERS_PKG.27.hypothesis= devel/py-hypothesis4
56:
57: _PY_VERS_PKG.default.pip= devel/py-pip
58: _PY_VERS_PKG.27.pip= devel/py-pip20
59:
60: _PY_VERS_PKG.default.setuptools= devel/py-setuptools
61: _PY_VERS_PKG.27.setuptools= devel/py-setuptools44
62:
63: _PY_VERS_PKG.default.setuptools_scm= devel/py-setuptools_scm
64: _PY_VERS_PKG.27.setuptools_scm= devel/py-setuptools_scm5
65:
66: _PY_VERS_PKG.default.test= devel/py-test
67: _PY_VERS_PKG.27.test= devel/py-test4
68:
1.9 wiz 69: .for pattern in ${PYTHON_VERSIONED_DEPENDENCIES}
70: pkg:= ${pattern:C/:.*//}
71: type:= ${pattern:C/[^:]*//}
1.90 joerg 72: dir:= ${_PY_VERS_PKG.${_PYTHON_VERSION}.${pkg}:U${_PY_VERS_PKG.default.${pkg}:Umissing}}
73: . if ${dir} == "missing"
74: PKG_FAIL_REASON+= "${pkg} unsupported in PYTHON_VERSIONED_DEPENDENCIES"
75: . else
76: . if ${_PY_VERS_PKG.dependency.${pkg}:Uno} == "yes"
77: . include "../../${_PY_VERS_PKG.default.${pkg}}/dependency.mk"
78: . endif
79: . if "${type}" == ":link"
1.9 wiz 80: .include "../../${dir}/buildlink3.mk"
1.90 joerg 81: . elif "${type}" == ":build"
1.98 riastrad 82: TOOL_DEPENDS:= ${TOOL_DEPENDS} ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${dir}
1.90 joerg 83: . elif "${type}" == ":test"
1.32 adam 84: TEST_DEPENDS:= ${TEST_DEPENDS} ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${dir}
1.90 joerg 85: . elif "${type}" == ":tool"
1.34 adam 86: TOOL_DEPENDS:= ${TOOL_DEPENDS} ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${dir}
1.90 joerg 87: . else
1.10 wiz 88: DEPENDS:= ${DEPENDS} ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${dir}
1.25 rillig 89: . endif
90: . endif
1.1 wiz 91: .endfor
CVSweb <webmaster@jp.NetBSD.org>