Blame SOURCES/pyeclib-1.6.0-noexplib.patch

43d799
commit 2e2273d2fa4e9c34fbfc07d075ec8299a941682d
43d799
Author: Pete Zaitcev <zaitcev@kotori.zaitcev.us>
43d799
Date:   Thu Jun 24 14:30:32 2021 -0500
43d799
43d799
    DNM Drop explicit /usr/lib
43d799
    
43d799
    When building Fedora RPM, the newest checkers complain that
43d799
    the library contains an explicit RPATH of "/usr/lib".
43d799
    Looking at the code, isn't it silly to have a path
43d799
    of sys.prefix? It could make sense when prefix was /usr/local,
43d799
    but we supported that one through some explicit checking,
43d799
    now removed.
43d799
    
43d799
    WIP: let's see if we can make PyECLib installed in /usr/local
43d799
    without screwing with explicit arguments to the Extension class.
43d799
    
43d799
    Related-To: rhbz#1967534
43d799
    Change-Id: I7c3eb54c72b3a3b02490a3ad4df78276593e1890
43d799
43d799
diff --git a/setup.py b/setup.py
43d799
index cf7e40b..5b54845 100644
43d799
--- a/setup.py
43d799
+++ b/setup.py
43d799
@@ -218,8 +218,6 @@ module = Extension('pyeclib_c',
43d799
                                  '%s/include/liberasurecode' % sys.prefix,
43d799
                                  '%s/include' % sys.prefix],
43d799
                    libraries=['erasurecode'],
43d799
-                   library_dirs=['%s/lib' % sys.prefix],
43d799
-                   runtime_library_dirs=['%s/lib' % sys.prefix],
43d799
                    # The extra arguments are for debugging
43d799
                    # extra_compile_args=['-g', '-O0'],
43d799
                    sources=['src/c/pyeclib_c/pyeclib_c.c'])