Skip to content

Commit

Permalink
pypa#48 Remove seemingly superfluous if to fix recursive libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
MathMagique committed Sep 23, 2016
1 parent 05afbdf commit 03a0397
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions auditwheel/wheel_abi.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,18 @@ def get_wheel_elfdata(wheel_fn: str):

with InGenericPkgCtx(wheel_fn) as ctx:
for fn, elf in elf_file_filter(ctx.iter_files()):
is_py_ext, py_ver = elf_is_python_extension(fn, elf)
if is_py_ext:
log.info('processing: %s', fn)
elftree = lddtree(fn)
full_elftree[fn] = elftree
for key, value in elf_find_versioned_symbols(elf):
versioned_symbols[key].add(value)

if py_ver == 2:
uses_ucs2_symbols |= any(
True for _ in elf_find_ucs2_symbols(elf))
full_external_refs[fn] = lddtree_external_references(elftree,
ctx.path)
_, py_ver = elf_is_python_extension(fn, elf)
log.info('processing: %s', fn)
elftree = lddtree(fn)
full_elftree[fn] = elftree
for key, value in elf_find_versioned_symbols(elf):
versioned_symbols[key].add(value)

if py_ver == 2:
uses_ucs2_symbols |= any(
True for _ in elf_find_ucs2_symbols(elf))
full_external_refs[fn] = lddtree_external_references(elftree,
ctx.path)

log.debug(json.dumps(full_elftree, indent=4))

Expand Down

0 comments on commit 03a0397

Please sign in to comment.