diff options
author | Eivind Uggedal <eu@eju.no> | 2019-05-12 19:01:36 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-08-21 14:04:42 +0000 |
commit | 06b2c874a9dc365e2190c60bb93ea7a6f27fc72c (patch) | |
tree | efcd3729521313a6ff9e44fc2f807f986d0145b2 /main/py-hiredis/system-hiredis.patch | |
parent | de4dad0b9450b25c3a13f7eeff38c914b2721ead (diff) | |
download | aports-06b2c874a9dc365e2190c60bb93ea7a6f27fc72c.tar.bz2 aports-06b2c874a9dc365e2190c60bb93ea7a6f27fc72c.tar.xz |
main/py3-hiredis: update to 1.0.0, py3 only, adopt
* Drop py2 version
* Adopt package (again)
* Modernize
* Add python3 support
* Run tests
* Patch to work with system hiredis 0.14
Diffstat (limited to 'main/py-hiredis/system-hiredis.patch')
-rw-r--r-- | main/py-hiredis/system-hiredis.patch | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/main/py-hiredis/system-hiredis.patch b/main/py-hiredis/system-hiredis.patch deleted file mode 100644 index 57dc709b99..0000000000 --- a/main/py-hiredis/system-hiredis.patch +++ /dev/null @@ -1,39 +0,0 @@ ---- a/setup.py -+++ b/setup.py -@@ -21,27 +21,9 @@ class install_lib(_install_lib.install_lib): - if self.distribution.has_ext_modules(): - self.run_command('build_ext') - --# To link the extension with the C library, distutils passes the "-lLIBRARY" --# option to the linker. This makes it go through its library search path. If it --# finds a shared object of the specified library in one of the system-wide --# library paths, it will dynamically link it. --# --# We want the linker to statically link the version of hiredis that is included --# with hiredis-py. However, the linker may pick up the shared library version --# of hiredis, if it is available through one of the system-wide library paths. --# To prevent this from happening, we use an obfuscated library name such that --# the only version the linker will be able to find is the right version. --# --# This is a terrible hack, but patching distutils to do the right thing for all --# supported Python versions is worse... --# --# Also see: https://github.com/pietern/hiredis-py/issues/15 --lib = ("hiredis_for_hiredis_py", { -- "sources": ["vendor/hiredis/%s.c" % src for src in ("hiredis", "net", "sds")]}) -- - ext = Extension("hiredis.hiredis", - sources=glob.glob("src/*.c"), -- include_dirs=["vendor"]) -+ libraries=["hiredis"]) - - setup( - name="hiredis", -@@ -53,7 +35,6 @@ setup( - keywords=["Redis"], - license="BSD", - packages=["hiredis"], -- libraries=[lib], - ext_modules=[ext], - - # Override "install_lib" command |