Skip to content

Commit

Permalink
needed non-py extensions can also be full_external_refs
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaslima authored and auvipy committed Mar 18, 2021
1 parent 4141cd1 commit 5945b3b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions auditwheel/wheel_abi.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,16 @@ def get_wheel_elfdata(wheel_fn: str):
# we should walk its elftree.
if basename(fn) not in needed_libs:
full_elftree[fn] = nonpy_elftree[fn]
full_external_refs[fn] = lddtree_external_references(
nonpy_elftree[fn], ctx.path)

log.debug(json.dumps(full_elftree, indent=4))
# Even if a non-pyextension ELF file is not needed, we
# should include it as an external references, because
# they might also require external libraries.
full_external_refs[fn] = lddtree_external_references(
nonpy_elftree[fn], ctx.path)

log.debug('full_elftree:\n%s', json.dumps(full_elftree, indent=4))
log.debug('full_external_refs (will be repaired):\n%s',
json.dumps(full_external_refs, indent=4))

return (full_elftree, full_external_refs, versioned_symbols,
uses_ucs2_symbols, uses_PyFPE_jbuf)
Expand Down

0 comments on commit 5945b3b

Please sign in to comment.