pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/py-curl py-curl: better patch for setup.py to allo...
details: https://anonhg.NetBSD.org/pkgsrc/rev/34fafb08edcc
branches: trunk
changeset: 769054:34fafb08edcc
user: adam <adam%pkgsrc.org@localhost>
date: Sun Nov 07 11:32:51 2021 +0000
description:
py-curl: better patch for setup.py to allow Python versions 3.10+
diffstat:
www/py-curl/distinfo | 4 ++--
www/py-curl/patches/patch-setup.py | 10 ++++++----
2 files changed, 8 insertions(+), 6 deletions(-)
diffs (42 lines):
diff -r 2cf57ea13834 -r 34fafb08edcc www/py-curl/distinfo
--- a/www/py-curl/distinfo Sun Nov 07 11:30:19 2021 +0000
+++ b/www/py-curl/distinfo Sun Nov 07 11:32:51 2021 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.31 2021/10/26 11:30:29 nia Exp $
+$NetBSD: distinfo,v 1.32 2021/11/07 11:32:51 adam Exp $
BLAKE2s (pycurl-7.44.1.tar.gz) = c1ca30128c441b596082c3d67edfdf2cf58288b2236a8ebca4edb000e0f87de3
SHA512 (pycurl-7.44.1.tar.gz) = e251db332791de07364695b5fd59b3a290486eabbde8be9914b5edeefa8702b4dd9ab678739ad765f76ededeb7192444fefe2a076d3977f454259dfd06731059
Size (pycurl-7.44.1.tar.gz) = 227562 bytes
-SHA1 (patch-setup.py) = 30f5205ed6f5447b5ee37e8721d287362d8c724e
+SHA1 (patch-setup.py) = 2ce9242b9b1cf1c5932075e4e0b83a1e0b454274
diff -r 2cf57ea13834 -r 34fafb08edcc www/py-curl/patches/patch-setup.py
--- a/www/py-curl/patches/patch-setup.py Sun Nov 07 11:30:19 2021 +0000
+++ b/www/py-curl/patches/patch-setup.py Sun Nov 07 11:32:51 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-setup.py,v 1.3 2021/08/25 09:01:07 adam Exp $
+$NetBSD: patch-setup.py,v 1.4 2021/11/07 11:32:51 adam Exp $
Stick to distutils.
Add multi Python variant support.
@@ -17,15 +17,17 @@
from distutils.extension import Extension
from distutils.util import split_quoted
from distutils.version import LooseVersion
-@@ -687,9 +684,9 @@ def get_data_files():
+@@ -686,10 +683,11 @@ def get_extension(argv, split_extension_
+ def get_data_files():
# a list of tuples with (path to install to, a list of local files)
data_files = []
++ version = '{}.{}'.format(sys.version_info.major, sys.version_info.minor)
if sys.platform == "win32":
- datadir = os.path.join("doc", PACKAGE)
-+ datadir = os.path.join("doc", PACKAGE + sys.version[0:3])
++ datadir = os.path.join("doc", PACKAGE + version)
else:
- datadir = os.path.join("share", "doc", PACKAGE)
-+ datadir = os.path.join("share", "doc", PACKAGE + sys.version[0:3])
++ datadir = os.path.join("share", "doc", PACKAGE + version)
#
files = ["AUTHORS", "ChangeLog", "COPYING-LGPL", "COPYING-MIT",
"INSTALL.rst", "README.rst", "RELEASE-NOTES.rst"]
Home |
Main Index |
Thread Index |
Old Index