View | Details | Raw Unified | Return to bug 255013 | Differences between
and this patch

Collapse All | Expand All

(-)CHANGES (+8 lines)
Lines 10-15 in the release notes and/or placed into UPDATING. Link Here
10
10
11
All ports committers are allowed to commit to this file.
11
All ports committers are allowed to commit to this file.
12
12
13
20210409:
14
AUTHOR: amdmi3@FreeBSD.org
15
16
  PYTHON_REL has been switched from a 4 digits number to a 5 digits number to
17
  handle python 3.10.0.  Ports checking for python 3.7.10 should compare
18
  PYTHON_REL against 30710 and ports checking for python 3.10.0 should compare
19
  PYTHON_REL against 31000.
20
13
20201120:
21
20201120:
14
AUTHOR: gnome@FreeBSD.org
22
AUTHOR: gnome@FreeBSD.org
15
23
(-)Mk/Uses/python.mk (-10 / +10 lines)
Lines 174-180 Link Here
174
# PYTHON_PORTSDIR	- The port directory of the chosen Python interpreter
174
# PYTHON_PORTSDIR	- The port directory of the chosen Python interpreter
175
#
175
#
176
# PYTHON_REL		- The release number of the chosen Python interpreter
176
# PYTHON_REL		- The release number of the chosen Python interpreter
177
#			  without dots, e.g. 2706, 3401, ...
177
#			  without dots, e.g. 20706, 30401, ...
178
#
178
#
179
# PYTHON_SUFFIX		- The major-minor release number of the chosen Python
179
# PYTHON_SUFFIX		- The major-minor release number of the chosen Python
180
#			  interpreter without dots, e.g. 27, 36, ...
180
#			  interpreter without dots, e.g. 27, 36, ...
Lines 455-472 PYTHON_EXT_SUFFIX= # empty Link Here
455
.if !defined(_PORTS_ENV_CHECK) || exists(${PORTSDIR}/${PYTHON_PORTSDIR})
455
.if !defined(_PORTS_ENV_CHECK) || exists(${PORTSDIR}/${PYTHON_PORTSDIR})
456
.include "${PORTSDIR}/${PYTHON_PORTSDIR}/Makefile.version"
456
.include "${PORTSDIR}/${PYTHON_PORTSDIR}/Makefile.version"
457
.endif
457
.endif
458
# Create a 4 integer version string, prefixing 0 to the last token if
458
# Create a 5 integer version string, prefixing 0 to the minor and patch
459
# it's a single character. Only use the the first 3 tokens of
459
# tokens if it's a single character. Only use the the first 3 tokens of
460
# PORTVERSION to support pre-release versions (rc3, alpha4, etc) of
460
# PORTVERSION to support pre-release versions (rc3, alpha4, etc) of
461
# any Python port (lang/pythonXY)
461
# any Python port (lang/pythonXY)
462
PYTHON_REL=	${PYTHON_PORTVERSION:C/^([0-9]+\.[0-9]+\.[0-9]+).*/\1/:C/\.([0-9]+)$/.0\1/:C/\.0?([0-9][0-9])$/.\1/:S/.//g}
462
PYTHON_REL=	${PYTHON_PORTVERSION:C/^([0-9]+\.[0-9]+\.[0-9]+).*/\1/:C/\.([0-9])$/.0\1/:C/\.([0-9]\.[0-9]+)/.0\1/:S/.//g}
463
463
464
# Might be overridden by calling ports
464
# Might be overridden by calling ports
465
PYTHON_CMD?=		${_PYTHON_BASECMD}${_PYTHON_VERSION}
465
PYTHON_CMD?=		${_PYTHON_BASECMD}${_PYTHON_VERSION}
466
.if ${PYTHON_VER} != 2.7
466
.if ${PYTHON_VER} != 2.7
467
.if exists(${PYTHON_CMD}-config)
467
.if exists(${PYTHON_CMD}-config)
468
PYTHON_ABIVER!=		${PYTHON_CMD}-config --abiflags
468
PYTHON_ABIVER!=		${PYTHON_CMD}-config --abiflags
469
.elif ${PYTHON_REL} < 3800
469
.elif ${PYTHON_REL} < 30800
470
# Default ABI flags for lang/python3[67] ports
470
# Default ABI flags for lang/python3[67] ports
471
PYTHON_ABIVER=		m
471
PYTHON_ABIVER=		m
472
.endif
472
.endif
Lines 607-613 add-plist-pymod: Link Here
607
		${_PYTHONPKGLIST} | ${SORT} >> ${TMPPLIST}
607
		${_PYTHONPKGLIST} | ${SORT} >> ${TMPPLIST}
608
608
609
.else
609
.else
610
.if ${PYTHON_REL} >= 3200 && defined(_PYTHON_FEATURE_PY3KPLIST)
610
.if ${PYTHON_REL} >= 30200 && defined(_PYTHON_FEATURE_PY3KPLIST)
611
# When Python version is 3.2+ we rewrite all the filenames
611
# When Python version is 3.2+ we rewrite all the filenames
612
# of TMPPLIST that end with .py[co], so that they conform
612
# of TMPPLIST that end with .py[co], so that they conform
613
# to PEP 3147 (see https://www.python.org/dev/peps/pep-3147/)
613
# to PEP 3147 (see https://www.python.org/dev/peps/pep-3147/)
Lines 623-629 add-plist-python: Link Here
623
		pc="__pycache__" mt="$$(${PYMAGICTAG})" pyo="opt-1.pyc" \
623
		pc="__pycache__" mt="$$(${PYMAGICTAG})" pyo="opt-1.pyc" \
624
		${TMPPLIST} > ${TMPPLIST}.pyc_tmp
624
		${TMPPLIST} > ${TMPPLIST}.pyc_tmp
625
	@${MV} ${TMPPLIST}.pyc_tmp ${TMPPLIST}
625
	@${MV} ${TMPPLIST}.pyc_tmp ${TMPPLIST}
626
.endif # ${PYTHON_REL} >= 3200 && defined(_PYTHON_FEATURE_PY3KPLIST)
626
.endif # ${PYTHON_REL} >= 30200 && defined(_PYTHON_FEATURE_PY3KPLIST)
627
.endif # defined(_PYTHON_FEATURE_AUTOPLIST) && defined(_PYTHON_FEATURE_DISTUTILS)
627
.endif # defined(_PYTHON_FEATURE_AUTOPLIST) && defined(_PYTHON_FEATURE_DISTUTILS)
628
628
629
# Fix for programs that build python from a GNU auto* environment
629
# Fix for programs that build python from a GNU auto* environment
Lines 638-651 PYGAME= ${PYTHON_PKGNAMEPREFIX}game>0:devel/py-game@${PY_FLAVOR} Link Here
638
PYNUMPY=	${PYTHON_PKGNAMEPREFIX}numpy>=1.16,1<1.20,1:math/py-numpy@${PY_FLAVOR}
638
PYNUMPY=	${PYTHON_PKGNAMEPREFIX}numpy>=1.16,1<1.20,1:math/py-numpy@${PY_FLAVOR}
639
639
640
# Common Python modules that can be needed but only for some versions of Python.
640
# Common Python modules that can be needed but only for some versions of Python.
641
.if ${PYTHON_REL} < 3500
641
.if ${PYTHON_REL} < 30500
642
PY_PYGMENTS=	${PYTHON_PKGNAMEPREFIX}pygments-25>=2.5.1<3:textproc/py-pygments-25@${PY_FLAVOR}
642
PY_PYGMENTS=	${PYTHON_PKGNAMEPREFIX}pygments-25>=2.5.1<3:textproc/py-pygments-25@${PY_FLAVOR}
643
.else
643
.else
644
PY_PILLOW=	${PYTHON_PKGNAMEPREFIX}pillow>=7.0.0:graphics/py-pillow@${PY_FLAVOR}
644
PY_PILLOW=	${PYTHON_PKGNAMEPREFIX}pillow>=7.0.0:graphics/py-pillow@${PY_FLAVOR}
645
PY_PYGMENTS=	${PYTHON_PKGNAMEPREFIX}pygments>=2.5.1<3:textproc/py-pygments@${PY_FLAVOR}
645
PY_PYGMENTS=	${PYTHON_PKGNAMEPREFIX}pygments>=2.5.1<3:textproc/py-pygments@${PY_FLAVOR}
646
.endif
646
.endif
647
647
648
.if ${PYTHON_REL} < 3400
648
.if ${PYTHON_REL} < 30400
649
PY_ENUM34=	${PYTHON_PKGNAMEPREFIX}enum34>=1.1<2.0:devel/py-enum34@${PY_FLAVOR}
649
PY_ENUM34=	${PYTHON_PKGNAMEPREFIX}enum34>=1.1<2.0:devel/py-enum34@${PY_FLAVOR}
650
.else
650
.else
651
PY_ENUM34=
651
PY_ENUM34=
Lines 684-690 PLIST_SUB+= PYTHON_INCLUDEDIR=${PYTHONPREFIX_INCLUDEDIR:S;${PREFIX}/;;} \ Link Here
684
		PYTHON_EXT_SUFFIX=${PYTHON_EXT_SUFFIX} \
684
		PYTHON_EXT_SUFFIX=${PYTHON_EXT_SUFFIX} \
685
		PYTHON_VER=${PYTHON_VER} \
685
		PYTHON_VER=${PYTHON_VER} \
686
		PYTHON_VERSION=${PYTHON_VERSION}
686
		PYTHON_VERSION=${PYTHON_VERSION}
687
.if ${PYTHON_REL} < 3000
687
.if ${PYTHON_REL} < 30000
688
PLIST_SUB+=	PYTHON2="" PYTHON3="@comment "
688
PLIST_SUB+=	PYTHON2="" PYTHON3="@comment "
689
.else
689
.else
690
PLIST_SUB+=	PYTHON2="@comment " PYTHON3=""
690
PLIST_SUB+=	PYTHON2="@comment " PYTHON3=""
(-)astro/py-metpy/Makefile (-2 / +2 lines)
Lines 31-41 NO_ARCH= yes Link Here
31
31
32
.include <bsd.port.pre.mk>
32
.include <bsd.port.pre.mk>
33
33
34
.if ${PYTHON_REL} < 3800
34
.if ${PYTHON_REL} < 30800
35
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=1.0.0:devel/py-importlib-metadata@${PY_FLAVOR}
35
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=1.0.0:devel/py-importlib-metadata@${PY_FLAVOR}
36
.endif
36
.endif
37
37
38
.if ${PYTHON_REL} < 3900
38
.if ${PYTHON_REL} < 30900
39
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-resources>=1.3.0:devel/py-importlib-resources@${PY_FLAVOR}
39
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-resources>=1.3.0:devel/py-importlib-resources@${PY_FLAVOR}
40
.endif
40
.endif
41
41
(-)databases/py-sqlalchemy14/Makefile (-1 / +1 lines)
Lines 37-43 SQLITE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${PY_ Link Here
37
37
38
.include <bsd.port.pre.mk>
38
.include <bsd.port.pre.mk>
39
39
40
.if ${PYTHON_REL} < 3800
40
.if ${PYTHON_REL} < 30800
41
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
41
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
42
.endif
42
.endif
43
43
(-)databases/py-sqlite3/Makefile (-1 / +1 lines)
Lines 30-36 PYDISTUTILS_INSTALLARGS+= --install-lib ${PYTHON_LIBDIR}/lib-dynload Link Here
30
.include <bsd.port.pre.mk>
30
.include <bsd.port.pre.mk>
31
31
32
post-extract:
32
post-extract:
33
.if ${PYTHON_REL} < 3000
33
.if ${PYTHON_REL} < 30000
34
	@${CP} ${FILESDIR}/setup.py ${WRKSRC}
34
	@${CP} ${FILESDIR}/setup.py ${WRKSRC}
35
.else
35
.else
36
	@${CP} ${FILESDIR}/setup3.py ${WRKSRC}/setup.py
36
	@${CP} ${FILESDIR}/setup3.py ${WRKSRC}/setup.py
(-)deskutils/dosage/Makefile (-1 / +1 lines)
Lines 24-30 NO_ARCH= yes Link Here
24
24
25
.include <bsd.port.pre.mk>
25
.include <bsd.port.pre.mk>
26
26
27
.if ${PYTHON_REL} < 3800
27
.if ${PYTHON_REL} < 30800
28
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}cached-property>0:devel/py-cached-property@${PY_FLAVOR} \
28
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}cached-property>0:devel/py-cached-property@${PY_FLAVOR} \
29
		${PYTHON_PKGNAMEPREFIX}importlib-metadata>0:devel/py-importlib-metadata@${PY_FLAVOR}
29
		${PYTHON_PKGNAMEPREFIX}importlib-metadata>0:devel/py-importlib-metadata@${PY_FLAVOR}
30
.endif
30
.endif
(-)devel/py-Jinja2/Makefile (-1 / +1 lines)
Lines 62-68 do-install: Link Here
62
.if ${PORT_OPTIONS:MEXAMPLES}
62
.if ${PORT_OPTIONS:MEXAMPLES}
63
PORTEXAMPLES=	*
63
PORTEXAMPLES=	*
64
post-build:
64
post-build:
65
.	if ${PYTHON_REL} >= 3000
65
.	if ${PYTHON_REL} >= 30000
66
	${PY2TO3_CMD} ${PY2TO3_ARGS} ${WRKSRC}/examples
66
	${PY2TO3_CMD} ${PY2TO3_ARGS} ${WRKSRC}/examples
67
.	endif
67
.	endif
68
	${PYTHON_CMD} -m compileall ${WRKSRC}/examples ; \
68
	${PYTHON_CMD} -m compileall ${WRKSRC}/examples ; \
(-)devel/py-aiortc/Makefile (-1 / +1 lines)
Lines 28-34 USE_PYTHON= autoplist concurrent distutils Link Here
28
28
29
.include <bsd.port.pre.mk>
29
.include <bsd.port.pre.mk>
30
30
31
.if ${PYTHON_REL} < 3700
31
.if ${PYTHON_REL} < 30700
32
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>=0:devel/py-dataclasses@${PY_FLAVOR}
32
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>=0:devel/py-dataclasses@${PY_FLAVOR}
33
.endif
33
.endif
34
34
(-)devel/py-anyio/Makefile (-1 / +1 lines)
Lines 30-36 TRIO_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}trio>=0.16:net/py-trio@${PY_FLAVOR} Link Here
30
30
31
.include <bsd.port.pre.mk>
31
.include <bsd.port.pre.mk>
32
32
33
.if ${PYTHON_REL} < 3800
33
.if ${PYTHON_REL} < 30800
34
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
34
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
35
.endif
35
.endif
36
36
(-)devel/py-argcomplete/Makefile (-1 / +1 lines)
Lines 24-30 NO_ARCH= yes Link Here
24
24
25
.include <bsd.port.pre.mk>
25
.include <bsd.port.pre.mk>
26
26
27
.if ${PYTHON_REL} < 3800
27
.if ${PYTHON_REL} < 30800
28
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0.23<4:devel/py-importlib-metadata@${PY_FLAVOR}
28
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0.23<4:devel/py-importlib-metadata@${PY_FLAVOR}
29
.endif
29
.endif
30
30
(-)devel/py-astroid/Makefile (-1 / +1 lines)
Lines 21-27 NO_ARCH= yes Link Here
21
21
22
.include <bsd.port.pre.mk>
22
.include <bsd.port.pre.mk>
23
23
24
.if ${PYTHON_REL} < 3800
24
.if ${PYTHON_REL} < 30800
25
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typed-ast>=1.4.0<1.5:devel/py-typed-ast@${PY_FLAVOR}
25
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typed-ast>=1.4.0<1.5:devel/py-typed-ast@${PY_FLAVOR}
26
.endif
26
.endif
27
27
(-)devel/py-black/Makefile (-1 / +1 lines)
Lines 37-43 D_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aiohttp>=3.3.2:www/py-aiohttp@${PY_FLAVOR Link Here
37
37
38
.include <bsd.port.pre.mk>
38
.include <bsd.port.pre.mk>
39
39
40
.if ${PYTHON_REL} < 3700
40
.if ${PYTHON_REL} < 30700
41
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>=0.6:devel/py-dataclasses@${PY_FLAVOR}
41
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>=0.6:devel/py-dataclasses@${PY_FLAVOR}
42
.endif
42
.endif
43
43
(-)devel/py-build/Makefile (-1 / +1 lines)
Lines 23-29 NO_ARCH= yes Link Here
23
23
24
.include <bsd.port.pre.mk>
24
.include <bsd.port.pre.mk>
25
25
26
.if ${PYTHON_REL} < 3800
26
.if ${PYTHON_REL} < 30800
27
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
27
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
28
.endif
28
.endif
29
29
(-)devel/py-catalogue/Makefile (-1 / +1 lines)
Lines 19-25 NO_ARCH= yes Link Here
19
19
20
.include <bsd.port.pre.mk>
20
.include <bsd.port.pre.mk>
21
21
22
.if ${PYTHON_REL} <  3800
22
.if ${PYTHON_REL} < 30800
23
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0.20:devel/py-importlib-metadata@${PY_FLAVOR}
23
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0.20:devel/py-importlib-metadata@${PY_FLAVOR}
24
.endif
24
.endif
25
25
(-)devel/py-cmd2/Makefile (-1 / +1 lines)
Lines 25-31 NO_ARCH= yes Link Here
25
25
26
.include <bsd.port.pre.mk>
26
.include <bsd.port.pre.mk>
27
27
28
.if ${PYTHON_REL} < 3800
28
.if ${PYTHON_REL} < 30800
29
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=1.6.0:devel/py-importlib-metadata@${PY_FLAVOR}
29
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=1.6.0:devel/py-importlib-metadata@${PY_FLAVOR}
30
.endif
30
.endif
31
31
(-)devel/py-flake8/Makefile (-1 / +1 lines)
Lines 26-32 TEST_ENV= PYTHONPATH="${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}" Link Here
26
26
27
.include <bsd.port.pre.mk>
27
.include <bsd.port.pre.mk>
28
28
29
.if ${PYTHON_REL} < 3800
29
.if ${PYTHON_REL} < 30800
30
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>0:devel/py-importlib-metadata@${PY_FLAVOR}
30
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>0:devel/py-importlib-metadata@${PY_FLAVOR}
31
.endif
31
.endif
32
32
(-)devel/py-fsspec/Makefile (-1 / +1 lines)
Lines 19-25 NO_ARCH= yes Link Here
19
19
20
.include <bsd.port.pre.mk>
20
.include <bsd.port.pre.mk>
21
21
22
.if ${PYTHON_REL} < 3800
22
.if ${PYTHON_REL} < 30800
23
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
23
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
24
.endif
24
.endif
25
25
(-)devel/py-graphql-relay/Makefile (-1 / +1 lines)
Lines 21-27 NO_ARCH= yes Link Here
21
21
22
.include <bsd.port.pre.mk>
22
.include <bsd.port.pre.mk>
23
23
24
.if ${PYTHON_REL} < 3800
24
.if ${PYTHON_REL} < 30800
25
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.7<4:devel/py-typing-extensions@${PY_FLAVOR}
25
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.7<4:devel/py-typing-extensions@${PY_FLAVOR}
26
.endif
26
.endif
27
27
(-)devel/py-importlib-metadata/Makefile (-1 / +1 lines)
Lines 20-26 USE_PYTHON= autoplist distutils Link Here
20
20
21
.include <bsd.port.pre.mk>
21
.include <bsd.port.pre.mk>
22
22
23
.if ${PYTHON_REL} < 3800
23
.if ${PYTHON_REL} < 30800
24
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.6.4:devel/py-typing-extensions@${PY_FLAVOR}
24
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.6.4:devel/py-typing-extensions@${PY_FLAVOR}
25
.endif
25
.endif
26
26
(-)devel/py-importlib-resources/Makefile (-1 / +1 lines)
Lines 19-25 USE_PYTHON= autoplist distutils Link Here
19
19
20
.include <bsd.port.pre.mk>
20
.include <bsd.port.pre.mk>
21
21
22
.if ${PYTHON_REL} < 3800
22
.if ${PYTHON_REL} < 30800
23
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}zipp>=0:devel/py-zipp@${PY_FLAVOR}
23
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}zipp>=0:devel/py-zipp@${PY_FLAVOR}
24
.endif
24
.endif
25
25
(-)devel/py-jsonpickle/Makefile (-1 / +1 lines)
Lines 18-24 NO_ARCH= yes Link Here
18
18
19
.include <bsd.port.pre.mk>
19
.include <bsd.port.pre.mk>
20
20
21
.if ${PYTHON_REL} < 3800
21
.if ${PYTHON_REL} < 30800
22
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>0:devel/py-importlib-metadata@${PY_FLAVOR}
22
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>0:devel/py-importlib-metadata@${PY_FLAVOR}
23
.endif
23
.endif
24
24
(-)devel/py-libcst/Makefile (-1 / +1 lines)
Lines 23-29 NO_ARCH= yes Link Here
23
23
24
.include <bsd.port.pre.mk>
24
.include <bsd.port.pre.mk>
25
25
26
.if ${PYTHON_REL} < 3700
26
.if ${PYTHON_REL} < 30700
27
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>=0.6.0:devel/py-dataclasses@${PY_FLAVOR}
27
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>=0.6.0:devel/py-dataclasses@${PY_FLAVOR}
28
.endif
28
.endif
29
29
(-)devel/py-openstacksdk/Makefile (-1 / +1 lines)
Lines 37-43 SHEBANG_GLOB= *.sh Link Here
37
37
38
.include <bsd.port.pre.mk>
38
.include <bsd.port.pre.mk>
39
39
40
.if ${PYTHON_REL} < 3800
40
.if ${PYTHON_REL} < 30800
41
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=1.7.0:devel/py-importlib-metadata@${PY_FLAVOR}
41
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=1.7.0:devel/py-importlib-metadata@${PY_FLAVOR}
42
.endif
42
.endif
43
43
(-)devel/py-oslo.config/Makefile (-1 / +1 lines)
Lines 27-33 NO_ARCH= yes Link Here
27
27
28
.include <bsd.port.pre.mk>
28
.include <bsd.port.pre.mk>
29
29
30
.if ${PYTHON_REL} < 3800
30
.if ${PYTHON_REL} < 30800
31
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=1.7.0:devel/py-importlib-metadata@${PY_FLAVOR}
31
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=1.7.0:devel/py-importlib-metadata@${PY_FLAVOR}
32
.endif
32
.endif
33
33
(-)devel/py-osprofiler/Makefile (-1 / +1 lines)
Lines 30-36 NO_ARCH= yes Link Here
30
30
31
.include <bsd.port.pre.mk>
31
.include <bsd.port.pre.mk>
32
32
33
.if ${PYTHON_REL} < 3800
33
.if ${PYTHON_REL} < 30800
34
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=1.7.0:devel/py-importlib-metadata@${PY_FLAVOR}
34
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=1.7.0:devel/py-importlib-metadata@${PY_FLAVOR}
35
.endif
35
.endif
36
36
(-)devel/py-pep517/Makefile (-1 / +1 lines)
Lines 21-27 NO_ARCH= yes Link Here
21
21
22
.include <bsd.port.pre.mk>
22
.include <bsd.port.pre.mk>
23
23
24
.if ${PYTHON_REL} < 3800
24
.if ${PYTHON_REL} < 30800
25
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR} \
25
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR} \
26
		${PYTHON_PKGNAMEPREFIX}zipp>=0:devel/py-zipp@${PY_FLAVOR}
26
		${PYTHON_PKGNAMEPREFIX}zipp>=0:devel/py-zipp@${PY_FLAVOR}
27
.endif
27
.endif
(-)devel/py-pint/Makefile (-2 / +2 lines)
Lines 25-35 SHEBANG_FILES= pint/pint-convert Link Here
25
25
26
.include <bsd.port.pre.mk>
26
.include <bsd.port.pre.mk>
27
27
28
.if ${PYTHON_REL} < 3700
28
.if ${PYTHON_REL} < 30700
29
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-resources>=0:devel/py-importlib-resources@${PY_FLAVOR}
29
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-resources>=0:devel/py-importlib-resources@${PY_FLAVOR}
30
.endif
30
.endif
31
31
32
.if ${PYTHON_REL} < 3800
32
.if ${PYTHON_REL} < 30800
33
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
33
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
34
.endif
34
.endif
35
35
(-)devel/py-pip-run/Makefile (-1 / +1 lines)
Lines 25-31 NO_ARCH= yes Link Here
25
25
26
.include <bsd.port.pre.mk>
26
.include <bsd.port.pre.mk>
27
27
28
.if ${PYTHON_REL} < 3800
28
.if ${PYTHON_REL} < 30800
29
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
29
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
30
.endif
30
.endif
31
31
(-)devel/py-pipx/Makefile (-1 / +1 lines)
Lines 24-30 NO_ARCH= yes Link Here
24
24
25
.include <bsd.port.pre.mk>
25
.include <bsd.port.pre.mk>
26
26
27
.if ${PYTHON_REL} < 3800
27
.if ${PYTHON_REL} < 30800
28
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=3.3.0:devel/py-importlib-metadata@${PY_FLAVOR}
28
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=3.3.0:devel/py-importlib-metadata@${PY_FLAVOR}
29
.endif
29
.endif
30
30
(-)devel/py-pluggy/Makefile (-1 / +1 lines)
Lines 22-28 NO_ARCH= yes Link Here
22
22
23
.include <bsd.port.pre.mk>
23
.include <bsd.port.pre.mk>
24
24
25
.if ${PYTHON_REL} < 3800
25
.if ${PYTHON_REL} < 30800
26
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0.12:devel/py-importlib-metadata@${PY_FLAVOR}
26
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0.12:devel/py-importlib-metadata@${PY_FLAVOR}
27
.endif
27
.endif
28
28
(-)devel/py-poetry-core/Makefile (-1 / +1 lines)
Lines 19-25 NO_ARCH= yes Link Here
19
19
20
.include <bsd.port.pre.mk>
20
.include <bsd.port.pre.mk>
21
21
22
.if ${PYTHON_REL} < 3800
22
.if ${PYTHON_REL} < 30800
23
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=1.7.0:devel/py-importlib-metadata@${PY_FLAVOR}
23
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=1.7.0:devel/py-importlib-metadata@${PY_FLAVOR}
24
.endif
24
.endif
25
25
(-)devel/py-ptpython/Makefile (-1 / +1 lines)
Lines 30-36 PTIPYTHON_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ipython>=0:devel/ipython@${PY_FLAV Link Here
30
30
31
.include <bsd.port.pre.mk>
31
.include <bsd.port.pre.mk>
32
32
33
.if ${PYTHON_REL} < 3800
33
.if ${PYTHON_REL} < 30800
34
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
34
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
35
.endif
35
.endif
36
36
(-)devel/py-pyvisa-py/Makefile (-1 / +1 lines)
Lines 29-35 USB_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyusb>=0:devel/py-pyusb@${PY_FLAVOR} Link Here
29
29
30
.include <bsd.port.pre.mk>
30
.include <bsd.port.pre.mk>
31
31
32
.if ${PYTHON_REL} < 3800
32
.if ${PYTHON_REL} < 30800
33
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
33
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
34
.endif
34
.endif
35
35
(-)devel/py-pyvisa/Makefile (-2 / +2 lines)
Lines 23-33 USE_LOCALE= en_US.UTF-8 Link Here
23
23
24
.include <bsd.port.pre.mk>
24
.include <bsd.port.pre.mk>
25
25
26
.if ${PYTHON_REL} < 3700
26
.if ${PYTHON_REL} < 30700
27
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>=0:devel/py-dataclasses@${PY_FLAVOR}
27
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>=0:devel/py-dataclasses@${PY_FLAVOR}
28
.endif
28
.endif
29
29
30
.if ${PYTHON_REL} < 3800
30
.if ${PYTHON_REL} < 30800
31
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
31
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
32
.endif
32
.endif
33
33
(-)devel/py-setuptools/Makefile (-1 / +1 lines)
Lines 35-41 SUB_LIST+= PYTHON_VER=${PYTHON_VER} Link Here
35
# These create dependency loops in redports/poudriere, because setuptools
35
# These create dependency loops in redports/poudriere, because setuptools
36
# is currently an explicit BUILD & RUN dependency in Uses/python.mk.
36
# is currently an explicit BUILD & RUN dependency in Uses/python.mk.
37
#TEST_DEPENDS=  ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
37
#TEST_DEPENDS=  ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
38
#.if ${PYTHON_REL} < 3300
38
#.if ${PYTHON_REL} < 30300
39
#TEST_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR}
39
#TEST_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR}
40
#.endif
40
#.endif
41
# pkg install -y py36-pytest py36-mock py36-pytest-fixture-config py36-pytest-virtualenv py36-paver
41
# pkg install -y py36-pytest py36-mock py36-pytest-fixture-config py36-pytest-virtualenv py36-paver
(-)devel/py-twine/Makefile (-1 / +1 lines)
Lines 29-35 NO_ARCH= yes Link Here
29
29
30
.include <bsd.port.pre.mk>
30
.include <bsd.port.pre.mk>
31
31
32
.if ${PYTHON_REL} < 3800
32
.if ${PYTHON_REL} < 30800
33
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
33
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
34
.endif
34
.endif
35
35
(-)devel/py-watermark/Makefile (-1 / +1 lines)
Lines 21-27 NO_ARCH= yes Link Here
21
21
22
.include <bsd.port.pre.mk>
22
.include <bsd.port.pre.mk>
23
23
24
.if ${PYTHON_REL} < 3800
24
.if ${PYTHON_REL} < 30800
25
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
25
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
26
.endif
26
.endif
27
27
(-)games/adonthell/Makefile (-1 / +1 lines)
Lines 38-44 PLIST_FILES= bin/adonthell \ Link Here
38
# C extensions are no longer linked to libpython since Python 3.8 and onwards.
38
# C extensions are no longer linked to libpython since Python 3.8 and onwards.
39
#
39
#
40
# See also https://bugs.python.org/issue36721 for reference.
40
# See also https://bugs.python.org/issue36721 for reference.
41
.if ${PYTHON_REL} >= 3800
41
.if ${PYTHON_REL} >= 30800
42
_PY_EMBED=	--embed
42
_PY_EMBED=	--embed
43
.endif
43
.endif
44
44
(-)games/anki/Makefile (-1 / +1 lines)
Lines 359-365 _MY_BUILDHASH= 84dcaa86 Link Here
359
359
360
.include <bsd.port.pre.mk>
360
.include <bsd.port.pre.mk>
361
361
362
.if ${PYTHON_REL} < 3800
362
.if ${PYTHON_REL} < 30800
363
_PY_SONAME=	.cpython-${PYTHON_SUFFIX}m
363
_PY_SONAME=	.cpython-${PYTHON_SUFFIX}m
364
.else
364
.else
365
_PY_SONAME=	${PYTHON_EXT_SUFFIX}
365
_PY_SONAME=	${PYTHON_EXT_SUFFIX}
(-)graphics/py-python-poppler-qt5/Makefile (-1 / +1 lines)
Lines 25-31 PLIST_SUB= _PY_SONAME=${_PY_SONAME} Link Here
25
25
26
.include <bsd.port.pre.mk>
26
.include <bsd.port.pre.mk>
27
27
28
.if ${PYTHON_REL} < 3800
28
.if ${PYTHON_REL} < 30800
29
_PY_SONAME=	.cpython-${PYTHON_SUFFIX}m
29
_PY_SONAME=	.cpython-${PYTHON_SUFFIX}m
30
.else
30
.else
31
_PY_SONAME=	${PYTHON_EXT_SUFFIX}
31
_PY_SONAME=	${PYTHON_EXT_SUFFIX}
(-)math/cadabra2/Makefile (-1 / +1 lines)
Lines 43-49 GUI_VARS= INSTALLS_ICONS=yes Link Here
43
43
44
.include <bsd.port.pre.mk>
44
.include <bsd.port.pre.mk>
45
45
46
.if ${PYTHON_REL} < 3800
46
.if ${PYTHON_REL} < 30800
47
_PY_SONAME=	.cpython-${PYTHON_SUFFIX}m
47
_PY_SONAME=	.cpython-${PYTHON_SUFFIX}m
48
.else
48
.else
49
_PY_SONAME=	${PYTHON_EXT_SUFFIX}
49
_PY_SONAME=	${PYTHON_EXT_SUFFIX}
(-)net/irrd/Makefile (-1 / +1 lines)
Lines 58-64 SUB_LIST= PYTHON_CMD="${PYTHON_CMD}" \ Link Here
58
58
59
.include <bsd.port.pre.mk>
59
.include <bsd.port.pre.mk>
60
60
61
.if ${PYTHON_REL} < 3700
61
.if ${PYTHON_REL} < 30700
62
BUILD_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>=0.6:devel/py-dataclasses@${PY_FLAVOR}
62
BUILD_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>=0.6:devel/py-dataclasses@${PY_FLAVOR}
63
.endif
63
.endif
64
64
(-)net/py-kombu/Makefile (-1 / +1 lines)
Lines 35-41 ZMQ_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyzmq>=13.1.0:net/py-pyzmq@${PY_FLAVOR} Link Here
35
35
36
.include <bsd.port.pre.mk>
36
.include <bsd.port.pre.mk>
37
37
38
.if ${PYTHON_REL} < 3800
38
.if ${PYTHON_REL} < 30800
39
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0.18:devel/py-importlib-metadata@${PY_FLAVOR}
39
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0.18:devel/py-importlib-metadata@${PY_FLAVOR}
40
.endif
40
.endif
41
41
(-)net/py-netaddr/Makefile (-1 / +1 lines)
Lines 25-31 OPTIONS_DEFINE= DOCS Link Here
25
25
26
.include <bsd.port.pre.mk>
26
.include <bsd.port.pre.mk>
27
27
28
.if ${PYTHON_REL} < 3700
28
.if ${PYTHON_REL} < 30700
29
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-resources>0:devel/py-importlib-resources@${PY_FLAVOR}
29
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-resources>0:devel/py-importlib-resources@${PY_FLAVOR}
30
.endif
30
.endif
31
31
(-)net/py-tweepy/Makefile (-1 / +1 lines)
Lines 29-35 TEST_ENV= USE_REPLAY=1 Link Here
29
29
30
.include <bsd.port.pre.mk>
30
.include <bsd.port.pre.mk>
31
31
32
.if ${PYTHON_REL} < 3000
32
.if ${PYTHON_REL} < 30000
33
TEST_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}unittest2>0:devel/py-unittest2@${PY_FLAVOR}
33
TEST_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}unittest2>0:devel/py-unittest2@${PY_FLAVOR}
34
.endif
34
.endif
35
35
(-)net/py-wsproto/Makefile (-1 / +1 lines)
Lines 21-27 NO_ARCH= yes Link Here
21
21
22
.include <bsd.port.pre.mk>
22
.include <bsd.port.pre.mk>
23
23
24
.if ${PYTHON_REL} < 3700
24
.if ${PYTHON_REL} < 30700
25
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>0:devel/py-dataclasses@${PY_FLAVOR}
25
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>0:devel/py-dataclasses@${PY_FLAVOR}
26
.endif
26
.endif
27
27
(-)print/py-fonttools3/Makefile (-1 / +1 lines)
Lines 46-52 WOFF_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}brotli>=1.0.1:archivers/py-brotli@${PY_ Link Here
46
.include <bsd.port.pre.mk>
46
.include <bsd.port.pre.mk>
47
47
48
.if ${PORT_OPTIONS:MUNICODE}
48
.if ${PORT_OPTIONS:MUNICODE}
49
.if ${PYTHON_REL} < 3800
49
.if ${PYTHON_REL} < 30800
50
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}unicodedata2>=12.0.0:devel/py-unicodedata2@${PY_FLAVOR}
50
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}unicodedata2>=12.0.0:devel/py-unicodedata2@${PY_FLAVOR}
51
.endif
51
.endif
52
.endif
52
.endif
(-)print/py-ufolib2/Makefile (-1 / +1 lines)
Lines 30-36 LXML_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lxml>=0:devel/py-lxml@${PY_FLAVOR} Link Here
30
30
31
.include <bsd.port.pre.mk>
31
.include <bsd.port.pre.mk>
32
32
33
.if ${PYTHON_REL} < 3800
33
.if ${PYTHON_REL} < 30800
34
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
34
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
35
.endif
35
.endif
36
36
(-)science/py-h5py/Makefile (-1 / +1 lines)
Lines 26-32 OPTIONS_DEFINE= DOCS EXAMPLES Link Here
26
26
27
.include <bsd.port.pre.mk>
27
.include <bsd.port.pre.mk>
28
28
29
.if ${PYTHON_REL} < 3800
29
.if ${PYTHON_REL} < 30800
30
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}cached-property>=0:devel/py-cached-property@${PY_FLAVOR}
30
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}cached-property>=0:devel/py-cached-property@${PY_FLAVOR}
31
.endif
31
.endif
32
32
(-)science/scidavis/Makefile (-1 / +1 lines)
Lines 56-62 post-install-NLS-on: Link Here
56
.include <bsd.port.pre.mk>
56
.include <bsd.port.pre.mk>
57
57
58
.if ${PORT_OPTIONS:MPYTHON}
58
.if ${PORT_OPTIONS:MPYTHON}
59
.if ${PYTHON_REL} < 3200
59
.if ${PYTHON_REL} < 30200
60
PYCACHE_DIR=	# none
60
PYCACHE_DIR=	# none
61
PYCACHE_FILE=	scidavisUtil.pyc
61
PYCACHE_FILE=	scidavisUtil.pyc
62
.else
62
.else
(-)security/py-flask-saml/Makefile (-1 / +1 lines)
Lines 19-25 NO_ARCH= yes Link Here
19
19
20
.include <bsd.port.pre.mk>
20
.include <bsd.port.pre.mk>
21
21
22
.if ${PYTHON_REL} < 3900
22
.if ${PYTHON_REL} < 30900
23
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}pysaml24>=4.0.0<5:security/py-pysaml24@${PY_FLAVOR}
23
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}pysaml24>=4.0.0<5:security/py-pysaml24@${PY_FLAVOR}
24
.else
24
.else
25
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}pysaml2>=5.1.0<6.20:security/py-pysaml2@${PY_FLAVOR}
25
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}pysaml2>=5.1.0<6.20:security/py-pysaml2@${PY_FLAVOR}
(-)security/py-signedjson/Makefile (-1 / +1 lines)
Lines 27-33 NO_ARCH= yes Link Here
27
27
28
.include <bsd.port.pre.mk>
28
.include <bsd.port.pre.mk>
29
29
30
.if ${PYTHON_REL} < 3800
30
.if ${PYTHON_REL} < 30800
31
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
31
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
32
.endif
32
.endif
33
33
(-)sysutils/py-python-crontab/Makefile (-1 / +1 lines)
Lines 26-32 GL_COMMIT= ba23056ddf1a00ecfd14b0a31c2e0cdad132f8d0 Link Here
26
.include <bsd.port.pre.mk>
26
.include <bsd.port.pre.mk>
27
27
28
# The UTF-8 mode is enabled by default when the locale is C since Python 3.7.
28
# The UTF-8 mode is enabled by default when the locale is C since Python 3.7.
29
.if ${PYTHON_REL} < 3700
29
.if ${PYTHON_REL} < 30700
30
TEST_ENV+=	LC_ALL=C.UTF-8
30
TEST_ENV+=	LC_ALL=C.UTF-8
31
.endif
31
.endif
32
32
(-)textproc/py-fingerprints/Makefile (-1 / +1 lines)
Lines 22-28 NO_ARCH= yes Link Here
22
.include <bsd.port.pre.mk>
22
.include <bsd.port.pre.mk>
23
# Set a locale to avoid build/configure errors.  The UTF-8 mode is enabled by
23
# Set a locale to avoid build/configure errors.  The UTF-8 mode is enabled by
24
# default when the locale is C since Python 3.7.
24
# default when the locale is C since Python 3.7.
25
.if ${PYTHON_REL} < 3700
25
.if ${PYTHON_REL} < 30700
26
USE_LOCALE=	en_US.UTF-8
26
USE_LOCALE=	en_US.UTF-8
27
.endif
27
.endif
28
28
(-)textproc/py-normality/Makefile (-1 / +1 lines)
Lines 29-35 ICU_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyicu>=1.9.3:devel/py-pyicu@${PY_FLAVOR} Link Here
29
.include <bsd.port.pre.mk>
29
.include <bsd.port.pre.mk>
30
# Set a locale to avoid build/configure errors.  The UTF-8 mode is enabled by
30
# Set a locale to avoid build/configure errors.  The UTF-8 mode is enabled by
31
# default when the locale is C since Python 3.7.
31
# default when the locale is C since Python 3.7.
32
.if ${PYTHON_REL} < 3700
32
.if ${PYTHON_REL} < 30700
33
USE_LOCALE=	en_US.UTF-8
33
USE_LOCALE=	en_US.UTF-8
34
.endif
34
.endif
35
35
(-)www/py-aioquic/Makefile (-1 / +1 lines)
Lines 21-27 USE_PYTHON= autoplist concurrent distutils Link Here
21
21
22
.include <bsd.port.pre.mk>
22
.include <bsd.port.pre.mk>
23
23
24
.if ${PYTHON_REL} < 3700
24
.if ${PYTHON_REL} < 30700
25
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>=0:devel/py-dataclasses@${PY_FLAVOR}
25
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>=0:devel/py-dataclasses@${PY_FLAVOR}
26
.endif
26
.endif
27
27
(-)www/py-cherrypy/Makefile (-1 / +1 lines)
Lines 46-52 post-install: Link Here
46
46
47
.include <bsd.port.pre.mk>
47
.include <bsd.port.pre.mk>
48
48
49
.if ${PYTHON_REL} < 3800
49
.if ${PYTHON_REL} < 30800
50
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}contextlib2>0:devel/py-contextlib2@${PY_FLAVOR}
50
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}contextlib2>0:devel/py-contextlib2@${PY_FLAVOR}
51
.endif
51
.endif
52
52
(-)www/py-django-bootstrap3/Makefile (-1 / +1 lines)
Lines 19-25 NO_ARCH= yes Link Here
19
19
20
.include <bsd.port.pre.mk>
20
.include <bsd.port.pre.mk>
21
21
22
.if ${PYTHON_REL} < 3800
22
.if ${PYTHON_REL} < 30800
23
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=1.5.0:devel/py-importlib-metadata@${PY_FLAVOR}
23
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=1.5.0:devel/py-importlib-metadata@${PY_FLAVOR}
24
.endif
24
.endif
25
25
(-)www/py-django-markdownx/Makefile (-1 / +1 lines)
Lines 23-29 NO_ARCH= yes Link Here
23
23
24
.include <bsd.port.pre.mk>
24
.include <bsd.port.pre.mk>
25
25
26
.if ${PYTHON_REL} < 3700
26
.if ${PYTHON_REL} < 30700
27
# Force an UTF-8 environment to avoid failures in the configuration phase for
27
# Force an UTF-8 environment to avoid failures in the configuration phase for
28
# Python versions <= 3.6.  Since Python 3.7 the UTF-8 mode is enabled by
28
# Python versions <= 3.6.  Since Python 3.7 the UTF-8 mode is enabled by
29
# default when the locale is C.
29
# default when the locale is C.
(-)www/py-django-treebeard/Makefile (-1 / +1 lines)
Lines 28-34 DOCS_VARS= PYDISTUTILS_BUILD_TARGET+="build_sphinx -a -E" Link Here
28
.include <bsd.port.pre.mk>
28
.include <bsd.port.pre.mk>
29
# Set a locale to avoid build/configure errors.  The UTF-8 mode is enabled by
29
# Set a locale to avoid build/configure errors.  The UTF-8 mode is enabled by
30
# default when the locale is C since Python 3.7.
30
# default when the locale is C since Python 3.7.
31
.if ${PYTHON_REL} < 3700
31
.if ${PYTHON_REL} < 30700
32
USE_LOCALE=	en_US.UTF-8
32
USE_LOCALE=	en_US.UTF-8
33
.endif
33
.endif
34
34
(-)www/py-fqdn/Makefile (-1 / +1 lines)
Lines 15-21 NO_ARCH= yes Link Here
15
15
16
.include <bsd.port.pre.mk>
16
.include <bsd.port.pre.mk>
17
17
18
.if ${PYTHON_REL} < 3800
18
.if ${PYTHON_REL} < 30800
19
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cached-property>=1.3.0:devel/py-cached-property@${PY_FLAVOR}
19
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cached-property>=1.3.0:devel/py-cached-property@${PY_FLAVOR}
20
.endif
20
.endif
21
21
(-)www/py-hypercorn/Makefile (-1 / +1 lines)
Lines 42-48 UVLOOP_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}uvloop>=0:devel/py-uvloop@${PY_FLAVOR Link Here
42
42
43
.include <bsd.port.pre.mk>
43
.include <bsd.port.pre.mk>
44
44
45
.if ${PYTHON_REL} < 3800
45
.if ${PYTHON_REL} < 30800
46
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
46
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
47
.endif
47
.endif
48
48
(-)www/py-sentinelhub/Makefile (-1 / +1 lines)
Lines 35-41 NO_ARCH= yes Link Here
35
35
36
.include <bsd.port.pre.mk>
36
.include <bsd.port.pre.mk>
37
37
38
.if ${PYTHON_REL} < 3700
38
.if ${PYTHON_REL} < 30700
39
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>=0:devel/py-dataclasses@${PY_FLAVOR}
39
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>=0:devel/py-dataclasses@${PY_FLAVOR}
40
.endif
40
.endif
41
41
(-)www/py-yarl/Makefile (-1 / +1 lines)
Lines 33-39 do-test: Link Here
33
33
34
.include <bsd.port.pre.mk>
34
.include <bsd.port.pre.mk>
35
35
36
.if ${PYTHON_REL} < 3800
36
.if ${PYTHON_REL} < 30800
37
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR}
37
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR}
38
.endif
38
.endif
39
39
(-)www/qutebrowser/Makefile (-2 / +2 lines)
Lines 48-58 DEPRECATED= Uses EOL Python 2.7 via www/qt5-webengine Link Here
48
EXPIRATION_DATE=2021-06-23
48
EXPIRATION_DATE=2021-06-23
49
.endif
49
.endif
50
50
51
.if ${PYTHON_REL} < 3700
51
.if ${PYTHON_REL} < 30700
52
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>0:devel/py-dataclasses@${PY_FLAVOR}
52
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>0:devel/py-dataclasses@${PY_FLAVOR}
53
.endif
53
.endif
54
54
55
.if ${PYTHON_REL} < 3900
55
.if ${PYTHON_REL} < 30900
56
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-resources>0:devel/py-importlib-resources@${PY_FLAVOR}
56
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-resources>0:devel/py-importlib-resources@${PY_FLAVOR}
57
.endif
57
.endif
58
58
(-)x11-fonts/py-opentype-sanitizer/Makefile (-1 / +1 lines)
Lines 22-28 USE_PYTHON= autoplist concurrent distutils Link Here
22
22
23
.include <bsd.port.pre.mk>
23
.include <bsd.port.pre.mk>
24
24
25
.if ${PYTHON_REL} >= 3800
25
.if ${PYTHON_REL} >= 30800
26
LDFLAGS+=	-lpython${PYTHON_VER}
26
LDFLAGS+=	-lpython${PYTHON_VER}
27
.endif
27
.endif
28
28
(-)x11-toolkits/py-tkinter/Makefile (-1 / +1 lines)
Lines 27-33 PYDISTUTILS_INSTALLARGS+= --install-lib ${PYTHON_LIBDIR}/lib-dynload Link Here
27
.include <bsd.port.pre.mk>
27
.include <bsd.port.pre.mk>
28
28
29
post-extract:
29
post-extract:
30
.if ${PYTHON_REL} < 3000
30
.if ${PYTHON_REL} < 30000
31
	@${SED} -e "s|%%TK_VER%%|${TK_VER}|" ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
31
	@${SED} -e "s|%%TK_VER%%|${TK_VER}|" ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
32
.else
32
.else
33
	@${SED} -e "s|%%TK_VER%%|${TK_VER}|" ${FILESDIR}/setup3.py > ${WRKSRC}/setup.py
33
	@${SED} -e "s|%%TK_VER%%|${TK_VER}|" ${FILESDIR}/setup3.py > ${WRKSRC}/setup.py
(-)x11-wm/chamfer/Makefile (-1 / +1 lines)
Lines 39-45 post-patch: Link Here
39
# XXX https://github.com/mesonbuild/meson/issues/4788
39
# XXX https://github.com/mesonbuild/meson/issues/4788
40
	@${REINPLACE_CMD} -e '/boost/!s/python3/python-${PYTHON_VER}/' \
40
	@${REINPLACE_CMD} -e '/boost/!s/python3/python-${PYTHON_VER}/' \
41
		-e '/boost/s/python3/python${PYTHON_SUFFIX}/' \
41
		-e '/boost/s/python3/python${PYTHON_SUFFIX}/' \
42
		`if [ ${PYTHON_REL} -lt 3800 ]; then \
42
		`if [ ${PYTHON_REL} -lt 30800 ]; then \
43
			printf "%s %s" -e '/python.*embed/d'; \
43
			printf "%s %s" -e '/python.*embed/d'; \
44
		 fi` \
44
		 fi` \
45
		${WRKSRC}/meson.build
45
		${WRKSRC}/meson.build

Return to bug 255013