Thu Dec 30 15:18:11 2021 UTC ()
python310: prepare for upcoming setuptools change

Bump PKGREVISION.


(wiz)
diff -r1.4 -r1.5 pkgsrc/lang/python310/Makefile
diff -r1.2 -r1.3 pkgsrc/lang/python310/PLIST

cvs diff -r1.4 -r1.5 pkgsrc/lang/python310/Makefile (expand / switch to context diff)
--- pkgsrc/lang/python310/Makefile 2021/12/11 10:13:18 1.4
+++ pkgsrc/lang/python310/Makefile 2021/12/30 15:18:11 1.5
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.4 2021/12/11 10:13:18 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2021/12/30 15:18:11 wiz Exp $
 
-PKGREVISION= 2
+PKGREVISION= 3
 .include "dist.mk"
 
 PKGNAME=	python310-${PY_DISTVERSION}
@@ -173,10 +173,18 @@
 	touch ${WRKSRC}/Include/opcode.h
 
 .if ${OPSYS} == "HPUX"
-post-install:
+post-install: hpux-postinstall
+.PHONY: hpux-postinstall
+hpux-postinstall:
 	${LN} -fs ${DESTDIR}${PREFIX}/lib/libpython3.10.sl \
 		${DESTDIR}${PREFIX}/lib/libpython3.10.sl.1.0
 .endif
+
+post-install: setuptools-postinstall
+.PHONY: setuptools-postinstall
+setuptools-postinstall:
+	${INSTALL_DATA} ${.CURDIR}/../../devel/py-setuptools/files/_distutils_system_mod \
+		${DESTDIR}${PREFIX}/lib/python${PY_VER_SUFFIX}/site-packages/_distutils_system_mod.py
 
 # needed to make devel/py-readline pick up the correct readline implementation
 BUILDLINK_DEPMETHOD.readline=		build

cvs diff -r1.2 -r1.3 pkgsrc/lang/python310/PLIST (expand / switch to context diff)
--- pkgsrc/lang/python310/PLIST 2021/12/07 09:31:09 1.2
+++ pkgsrc/lang/python310/PLIST 2021/12/30 15:18:11 1.3
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2021/12/07 09:31:09 adam Exp $
+@comment $NetBSD: PLIST,v 1.3 2021/12/30 15:18:11 wiz Exp $
 bin/2to3-${PY_VER_SUFFIX}
 bin/pydoc${PY_VER_SUFFIX}
 bin/python${PY_VER_SUFFIX}
@@ -2555,6 +2555,7 @@
 lib/python${PY_VER_SUFFIX}/signal.pyc
 lib/python${PY_VER_SUFFIX}/signal.pyo
 lib/python${PY_VER_SUFFIX}/site-packages/README.txt
+lib/python${PY_VER_SUFFIX}/site-packages/_distutils_system_mod.py
 lib/python${PY_VER_SUFFIX}/site.py
 lib/python${PY_VER_SUFFIX}/site.pyc
 lib/python${PY_VER_SUFFIX}/site.pyo