diff --git a/rpathology/api.py b/rpathology/api.py index 6d2d883..82452d0 100644 --- a/rpathology/api.py +++ b/rpathology/api.py @@ -9,3 +9,9 @@ get_rpaths, set_rpaths) else: raise ImportError('This platform({}) is not supported!'.format(__sys_os)) + + +# Keep flake8 happy without telling it to ignore everything +hushup_flake8 = [build_rpath, is_executable, get_missing_libraries, get_rpaths, + set_rpaths] +del hushup_flake8 diff --git a/rpathology/elf.py b/rpathology/elf.py index 32c0ad0..350a4d9 100644 --- a/rpathology/elf.py +++ b/rpathology/elf.py @@ -7,10 +7,10 @@ from elftools.elf.dynamic import DynamicSection from elftools.elf.elffile import ELFFile - PY3K = sys.version_info > (3, 0) MISSING_LIB_REGEX = re.compile(r'.+(not found).+') + def _bytes2str(b): if PY3K: return b.decode('utf-8') @@ -68,7 +68,6 @@ def is_executable(path): def get_missing_libraries(path): """ Return a list of missing libraries for a given executable. """ - shortpath = op.basename(path) if not is_executable(path): return [] diff --git a/rpathology/list.py b/rpathology/list.py index d2aa2ad..e245908 100644 --- a/rpathology/list.py +++ b/rpathology/list.py @@ -5,7 +5,7 @@ import os import os.path as op -from .api import is_executable, get_missing_libraries +from .api import get_missing_libraries def _show_misses(misses, root):