File fix-setuppy.patch of Package python-PyECLib
Index: kmgreen2-pyeclib-aa58aa887c23/setup.py
===================================================================
--- kmgreen2-pyeclib-aa58aa887c23.orig/setup.py
+++ kmgreen2-pyeclib-aa58aa887c23/setup.py
@@ -55,18 +55,12 @@ default_python_libdir = get_python_lib()
# and Tushar) cannot explain what is going on with
# distutils or libtool here.
#
-standard_library_paths = [('%s/usr/local/lib' % _exec_prefix),
- '/lib', '/usr/lib', '/usr/local/lib']
+standard_library_paths = [default_python_libdir]
-default_library_paths = [default_python_libdir,
- ('%s/usr/local/lib' % _exec_prefix),
- '/lib', '/usr/lib', '/usr/local/lib',
- 'src/c/liberasurecode-1.0.7/src/.libs']
+default_library_paths = [default_python_libdir]
default_include_paths = [default_python_incdir,
- '/usr/local/include', '/usr/local/include/jerasure',
- '/usr/include', 'src/c/pyeclib_c',
- '/usr/local/include']
+ 'src/c/pyeclib_c']
libflags = ''
includeflags = ''
@@ -193,9 +187,10 @@ def _check_library(library, soname, libr
class build(_build):
def run(self):
- _check_library("liberasurecode-1.0.7", "liberasurecode",
- "https://bitbucket.org/tsg-/liberasurecode.git",
- "build", self.distribution)
+ # don't check for libraries. we have BuildRequires
+ #_check_library("liberasurecode-1.0.7", "liberasurecode",
+ # "https://bitbucket.org/tsg-/liberasurecode.git",
+ # "build", self.distribution)
_build.run(self)
@@ -208,17 +203,17 @@ class clean(_clean):
class install(_install):
def run(self):
- _check_library("liberasurecode-1.0.7", "liberasurecode",
- "https://bitbucket.org/tsg-/liberasurecode.git",
- "install", self.distribution)
- _check_library("gf-complete-1.0", "libgf_complete",
- "http://lab.jerasure.org/jerasure/gf-complete.git",
- "install", self.distribution)
- _check_library("jerasure-2.0", "libJerasure",
- "http://lab.jerasure.org/jerasure/jerasure.git",
- "install", self.distribution)
+ # don't check for libraries. we have BuildRequires
+ # _check_library("liberasurecode-1.0.7", "liberasurecode",
+ # "https://bitbucket.org/tsg-/liberasurecode.git",
+ # "install", self.distribution)
+ # _check_library("gf-complete-1.0", "libgf_complete",
+ # "http://lab.jerasure.org/jerasure/gf-complete.git",
+ # "install", self.distribution)
+ # _check_library("jerasure-2.0", "libJerasure",
+ # "http://lab.jerasure.org/jerasure/jerasure.git",
+ # "install", self.distribution)
installroot = _get_installroot(self.distribution)
- default_library_paths.insert(0, "%s/usr/local/lib" % installroot)
_install.run(self)
# Another Mac-ism... If the libraries are installed
@@ -256,8 +251,6 @@ module = Extension('pyeclib_c',
libraries=['erasurecode'],
# The extra arguments are for debugging
# extra_compile_args=['-g', '-O0'],
- extra_link_args=['-Wl,-rpath,%s' %
- l for l in default_library_paths],
sources=['src/c/pyeclib_c/pyeclib_c.c'])
setup(name='PyECLib',