| @@ -1,47 +1,48 @@ | | | @@ -1,47 +1,48 @@ |
1 | # $NetBSD: versioned_dependencies.mk,v 1.51 2021/07/30 17:40:03 adam Exp $ | | 1 | # $NetBSD: versioned_dependencies.mk,v 1.52 2021/11/01 18:47:17 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: Pmw Pillow X cairo dialog eliot html2text hypothesis ipython jsonlib more-itertools pygments python-digest rsa setuptools sphinx test zipp | | 12 | # Possible values: Pmw Pillow X cairo dialog eliot html2text hypothesis ipython jsonlib more-itertools pygments pyparsing python-digest rsa setuptools sphinx test zipp |
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 | # format: short name for PYTHON_VERSIONED_DEPENDENCIES<space>Python-2.x path<space>Python-3.x path | | 18 | # format: short name for PYTHON_VERSIONED_DEPENDENCIES<space>Python-2.x path<space>Python-3.x path |
19 | _SUPPORTED_PACKAGES= # empty | | 19 | _SUPPORTED_PACKAGES= # empty |
20 | _SUPPORTED_PACKAGES+= Pmw x11/py-Pmw x11/py-Pmw2 | | 20 | _SUPPORTED_PACKAGES+= Pmw x11/py-Pmw x11/py-Pmw2 |
21 | _SUPPORTED_PACKAGES+= Pillow graphics/py-Pillow6 graphics/py-Pillow | | 21 | _SUPPORTED_PACKAGES+= Pillow graphics/py-Pillow6 graphics/py-Pillow |
22 | _SUPPORTED_PACKAGES+= X textproc/py-X2 textproc/py-X | | 22 | _SUPPORTED_PACKAGES+= X textproc/py-X2 textproc/py-X |
23 | _SUPPORTED_PACKAGES+= cairo graphics/py-cairo118 graphics/py-cairo | | 23 | _SUPPORTED_PACKAGES+= cairo graphics/py-cairo118 graphics/py-cairo |
24 | _SUPPORTED_PACKAGES+= dialog devel/py-dialog2 devel/py-dialog | | 24 | _SUPPORTED_PACKAGES+= dialog devel/py-dialog2 devel/py-dialog |
25 | _SUPPORTED_PACKAGES+= eliot sysutils/py-eliot17 sysutils/py-eliot | | 25 | _SUPPORTED_PACKAGES+= eliot sysutils/py-eliot17 sysutils/py-eliot |
26 | # XXX feedparser 6.x is not only py27-incompatible, but also 5.x-API-incompatible | | 26 | # XXX feedparser 6.x is not only py27-incompatible, but also 5.x-API-incompatible |
27 | #_SUPPORTED_PACKAGES+= feedparser textproc/py-feedparser5 textproc/py-feedparser | | 27 | #_SUPPORTED_PACKAGES+= feedparser textproc/py-feedparser5 textproc/py-feedparser |
28 | _SUPPORTED_PACKAGES+= html2text textproc/py-html2text-2019.8.11 textproc/py-html2text | | 28 | _SUPPORTED_PACKAGES+= html2text textproc/py-html2text-2019.8.11 textproc/py-html2text |
29 | _SUPPORTED_PACKAGES+= hypothesis devel/py-hypothesis4 devel/py-hypothesis | | 29 | _SUPPORTED_PACKAGES+= hypothesis devel/py-hypothesis4 devel/py-hypothesis |
30 | _SUPPORTED_PACKAGES+= ipython devel/py-ipython5 devel/py-ipython | | 30 | _SUPPORTED_PACKAGES+= ipython devel/py-ipython5 devel/py-ipython |
31 | _SUPPORTED_PACKAGES+= isort devel/py-isort4 devel/py-isort | | 31 | _SUPPORTED_PACKAGES+= isort devel/py-isort4 devel/py-isort |
32 | _SUPPORTED_PACKAGES+= jsonlib textproc/py-jsonlib textproc/py-jsonlib3 | | 32 | _SUPPORTED_PACKAGES+= jsonlib textproc/py-jsonlib textproc/py-jsonlib3 |
33 | _SUPPORTED_PACKAGES+= more-itertools devel/py-more-itertools2 devel/py-more-itertools | | 33 | _SUPPORTED_PACKAGES+= more-itertools devel/py-more-itertools2 devel/py-more-itertools |
34 | _SUPPORTED_PACKAGES+= pygments textproc/py-pygments25 textproc/py-pygments | | 34 | _SUPPORTED_PACKAGES+= pygments textproc/py-pygments25 textproc/py-pygments |
| | | 35 | _SUPPORTED_PACKAGES+= pyparsing devel/py-pyparsing2 devel/py-pyparsing |
35 | _SUPPORTED_PACKAGES+= python-digest www/py-python-digest www/py-python3-digest | | 36 | _SUPPORTED_PACKAGES+= python-digest www/py-python-digest www/py-python3-digest |
36 | _SUPPORTED_PACKAGES+= rsa security/py-rsa40 security/py-rsa | | 37 | _SUPPORTED_PACKAGES+= rsa security/py-rsa40 security/py-rsa |
37 | _SUPPORTED_PACKAGES+= setuptools devel/py-setuptools44 devel/py-setuptools | | 38 | _SUPPORTED_PACKAGES+= setuptools devel/py-setuptools44 devel/py-setuptools |
38 | _SUPPORTED_PACKAGES+= sphinx textproc/py-sphinx1 textproc/py-sphinx | | 39 | _SUPPORTED_PACKAGES+= sphinx textproc/py-sphinx1 textproc/py-sphinx |
39 | _SUPPORTED_PACKAGES+= test devel/py-test4 devel/py-test | | 40 | _SUPPORTED_PACKAGES+= test devel/py-test4 devel/py-test |
40 | _SUPPORTED_PACKAGES+= zipp archivers/py-zipp1 archivers/py-zipp | | 41 | _SUPPORTED_PACKAGES+= zipp archivers/py-zipp1 archivers/py-zipp |
41 | | | 42 | |
42 | .for pattern in ${PYTHON_VERSIONED_DEPENDENCIES} | | 43 | .for pattern in ${PYTHON_VERSIONED_DEPENDENCIES} |
43 | _PKG_MATCHED= no | | 44 | _PKG_MATCHED= no |
44 | pkg:= ${pattern:C/:.*//} | | 45 | pkg:= ${pattern:C/:.*//} |
45 | type:= ${pattern:C/[^:]*//} | | 46 | type:= ${pattern:C/[^:]*//} |
46 | . for name py2dir py3dir in ${_SUPPORTED_PACKAGES} | | 47 | . for name py2dir py3dir in ${_SUPPORTED_PACKAGES} |
47 | . if "${pkg}" == "${name}" | | 48 | . if "${pkg}" == "${name}" |