pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-pip py-pip: copy distro config file to overla...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/aef61019def6
branches:  trunk
changeset: 375566:aef61019def6
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue Mar 15 21:22:59 2022 +0000

description:
py-pip: copy distro config file to overlay directory

Fixes pip with overlay support.

Bump PKGREVISION.

diffstat:

 devel/py-pip/Makefile                                       |   4 +-
 devel/py-pip/distinfo                                       |   3 +-
 devel/py-pip/patches/patch-src_pip___internal_build__env.py |  25 +++++++++++++
 3 files changed, 29 insertions(+), 3 deletions(-)

diffs (54 lines):

diff -r 82f1b9496043 -r aef61019def6 devel/py-pip/Makefile
--- a/devel/py-pip/Makefile     Tue Mar 15 21:13:53 2022 +0000
+++ b/devel/py-pip/Makefile     Tue Mar 15 21:22:59 2022 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.51 2022/01/05 15:41:07 wiz Exp $
+# $NetBSD: Makefile,v 1.52 2022/03/15 21:22:59 wiz Exp $
 
 DISTNAME=      pip-21.3.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   2
+PKGREVISION=   3
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pip/}
 
diff -r 82f1b9496043 -r aef61019def6 devel/py-pip/distinfo
--- a/devel/py-pip/distinfo     Tue Mar 15 21:13:53 2022 +0000
+++ b/devel/py-pip/distinfo     Tue Mar 15 21:22:59 2022 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.43 2021/11/09 23:19:49 wiz Exp $
+$NetBSD: distinfo,v 1.44 2022/03/15 21:22:59 wiz Exp $
 
 BLAKE2s (pip-21.3.1.tar.gz) = ef20009a7f7d9131debfb4b33f3438d4ca2f9a9f90c72d28b3c1bdcb6967cdf9
 SHA512 (pip-21.3.1.tar.gz) = cc8cb13a7f4f53ddcaa1bf10586d0caa51bc334728bbd664f7085b3bfbfd09d082c2f01f4d1ecd6a69d7228976058a965087f1852da6d1155526fac1f107bf13
 Size (pip-21.3.1.tar.gz) = 1731517 bytes
+SHA1 (patch-src_pip___internal_build__env.py) = bcf27c9cd169c487dd266f3747dc1ede4845e9c0
diff -r 82f1b9496043 -r aef61019def6 devel/py-pip/patches/patch-src_pip___internal_build__env.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-pip/patches/patch-src_pip___internal_build__env.py       Tue Mar 15 21:22:59 2022 +0000
@@ -0,0 +1,25 @@
+$NetBSD: patch-src_pip___internal_build__env.py,v 1.1 2022/03/15 21:22:59 wiz Exp $
+
+Copy distutils distro config file to overlay.
+https://github.com/pypa/pip/issues/10949
+
+--- src/pip/_internal/build_env.py.orig        2021-10-22 15:15:54.000000000 +0000
++++ src/pip/_internal/build_env.py
+@@ -9,6 +9,7 @@ import sys
+ import textwrap
+ import zipfile
+ from collections import OrderedDict
++from shutil import copy
+ from sysconfig import get_paths
+ from types import TracebackType
+ from typing import TYPE_CHECKING, Iterable, Iterator, List, Optional, Set, Tuple, Type
+@@ -93,6 +94,9 @@ class BuildEnvironment:
+         self._site_dir = os.path.join(temp_dir.path, "site")
+         if not os.path.exists(self._site_dir):
+             os.mkdir(self._site_dir)
++        distutils_distro_config = get_paths()["platlib"] + "/_distutils_system_mod.py"
++        if os.path.exists(distutils_distro_config):
++            copy(distutils_distro_config, self._site_dir)
+         with open(os.path.join(self._site_dir, "sitecustomize.py"), "w") as fp:
+             fp.write(
+                 textwrap.dedent(



Home | Main Index | Thread Index | Old Index