pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-ruamel-yaml py-ruamel-yaml: fix installation



details:   https://anonhg.NetBSD.org/pkgsrc/rev/752f4420439e
branches:  trunk
changeset: 371619:752f4420439e
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Jan 10 22:40:19 2022 +0000

description:
py-ruamel-yaml: fix installation

diffstat:

 devel/py-ruamel-yaml/distinfo               |   3 ++-
 devel/py-ruamel-yaml/patches/patch-setup.py |  20 ++++++++++++++++++++
 2 files changed, 22 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r ea54b267a33d -r 752f4420439e devel/py-ruamel-yaml/distinfo
--- a/devel/py-ruamel-yaml/distinfo     Mon Jan 10 22:37:51 2022 +0000
+++ b/devel/py-ruamel-yaml/distinfo     Mon Jan 10 22:40:19 2022 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.23 2022/01/04 12:35:59 adam Exp $
+$NetBSD: distinfo,v 1.24 2022/01/10 22:40:19 wiz Exp $
 
 BLAKE2s (ruamel.yaml-0.17.20.tar.gz) = ff5735e1af3f92a5b201354625f168cfdf6ab30202255d26fcbd3b80a5e75326
 SHA512 (ruamel.yaml-0.17.20.tar.gz) = 6d6901c639fa27098a327eb717e92e51696a3ad469f34486ee160310f8e5d080b2a1206ebdbe018d8b3cd12d7757ddcb3abe9eaf1f329c2fe2ee78d167ad29ba
 Size (ruamel.yaml-0.17.20.tar.gz) = 128212 bytes
+SHA1 (patch-setup.py) = 1883f23fedba174b8f31c7f19e88bd836c893dab
diff -r ea54b267a33d -r 752f4420439e devel/py-ruamel-yaml/patches/patch-setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-ruamel-yaml/patches/patch-setup.py       Mon Jan 10 22:40:19 2022 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-setup.py,v 1.3 2022/01/10 22:40:19 wiz Exp $
+
+Allow standard pkgsrc installation.
+
+--- setup.py.orig      2021-12-25 06:50:42.000000000 +0000
++++ setup.py
+@@ -326,13 +326,6 @@ class NameSpacePackager(object):
+             debug('calling setup.py', sys.argv)
+             if '-h' in sys.argv:
+                 pass
+-            elif '--single-version-externally-managed' not in sys.argv:
+-                if os.environ.get('READTHEDOCS', None) == 'True':
+-                    os.system('pip install .')
+-                    sys.exit(0)
+-                if not os.environ.get('RUAMEL_NO_PIP_INSTALL_CHECK', False):
+-                    print('error: you have to install with "pip install ."')
+-                    sys.exit(1)
+         # If you only support an extension module on Linux, Windows thinks it
+         # is pure. That way you would get pure python .whl files that take
+         # precedence for downloading on Linux over source with compilable C code



Home | Main Index | Thread Index | Old Index