pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/python37 python37: prepare for upcoming setuptool...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3f426ffa1f25
branches:  trunk
changeset: 771951:3f426ffa1f25
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Thu Dec 30 15:16:14 2021 +0000

description:
python37: prepare for upcoming setuptools change

Bump PKGREVISION.

diffstat:

 lang/python37/Makefile |  14 +++++++++++---
 lang/python37/PLIST    |   3 ++-
 2 files changed, 13 insertions(+), 4 deletions(-)

diffs (50 lines):

diff -r 4d5ce764dcbf -r 3f426ffa1f25 lang/python37/Makefile
--- a/lang/python37/Makefile    Thu Dec 30 15:13:17 2021 +0000
+++ b/lang/python37/Makefile    Thu Dec 30 15:16:14 2021 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.27 2021/12/08 16:05:22 adam Exp $
+# $NetBSD: Makefile,v 1.28 2021/12/30 15:16:14 wiz Exp $
 
-PKGREVISION= 1
+PKGREVISION= 2
 .include "dist.mk"
 
 PKGNAME=       python37-${PY_DISTVERSION}
@@ -172,11 +172,19 @@
        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.7.sl \
                ${DESTDIR}${PREFIX}/lib/libpython3.7.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
 
diff -r 4d5ce764dcbf -r 3f426ffa1f25 lang/python37/PLIST
--- a/lang/python37/PLIST       Thu Dec 30 15:13:17 2021 +0000
+++ b/lang/python37/PLIST       Thu Dec 30 15:16:14 2021 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.12 2020/08/19 07:08:34 adam Exp $
+@comment $NetBSD: PLIST,v 1.13 2021/12/30 15:16:14 wiz Exp $
 bin/2to3-${PY_VER_SUFFIX}
 bin/pydoc${PY_VER_SUFFIX}
 bin/python${PY_VER_SUFFIX}
@@ -2465,6 +2465,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



Home | Main Index | Thread Index | Old Index