summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-07-19 20:38:41 +0200
committerMichał Górny <mgorny@gentoo.org>2024-07-19 21:56:15 +0200
commitc4958e250ed72493784b28448712625320b7b81a (patch)
treeaf2e8143beb1ef6d373b89d1c94027b52096e5d9 /dev-python/hiredis/files
parentdev-python/django-crispy-forms: Bump to 2.3 (diff)
downloadgentoo-c4958e250ed72493784b28448712625320b7b81a.tar.gz
gentoo-c4958e250ed72493784b28448712625320b7b81a.tar.bz2
gentoo-c4958e250ed72493784b28448712625320b7b81a.zip
dev-python/hiredis: Bump to 2.4.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/hiredis/files')
-rw-r--r--dev-python/hiredis/files/hiredis-2.4.0-system-libs.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/dev-python/hiredis/files/hiredis-2.4.0-system-libs.patch b/dev-python/hiredis/files/hiredis-2.4.0-system-libs.patch
new file mode 100644
index 000000000000..92a14f91d200
--- /dev/null
+++ b/dev-python/hiredis/files/hiredis-2.4.0-system-libs.patch
@@ -0,0 +1,33 @@
+--- hiredis-2.2.2.orig/setup.py
++++ hiredis-2.2.2/setup.py
+@@ -18,8 +18,7 @@
+
+
+ def get_sources():
+- hiredis_sources = ("alloc", "async", "hiredis", "net", "read", "sds", "sockcompat")
+- return sorted(glob.glob("src/*.c") + ["vendor/hiredis/%s.c" % src for src in hiredis_sources])
++ return sorted(glob.glob("src/*.c"))
+
+
+ def get_linker_args():
+@@ -38,17 +37,16 @@
+
+ def get_libraries():
+ if 'win32' in sys.platform:
+- return ["ws2_32", ]
++ return ["ws2_32", "hiredis"]
+ else:
+- return []
++ return ["hiredis"]
+
+
+ ext = Extension("hiredis.hiredis",
+ sources=get_sources(),
+ extra_compile_args=get_compiler_args(),
+ extra_link_args=get_linker_args(),
+- libraries=get_libraries(),
+- include_dirs=["vendor"])
++ libraries=get_libraries())
+
+ setup(
+ name="hiredis",