Skip to content

Commit

Permalink
makewheel: ignore dependencies of panda3d_tools/pstats
Browse files Browse the repository at this point in the history
  • Loading branch information
rdb committed Sep 17, 2018
1 parent 338b428 commit 3a206ed
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions makepanda/makewheel.py
Expand Up @@ -107,6 +107,11 @@ def get_python_ext_module_dir():
"linux-vdso.so.1", "linux-gate.so.1", "ld-linux.so.2",
]

# Binaries to never scan for dependencies on non-Windows systems.
IGNORE_UNIX_DEPS_OF = [
"panda3d_tools/pstats",
]

WHEEL_DATA = """Wheel-Version: 1.0
Generator: makepanda
Root-Is-Purelib: false
Expand Down Expand Up @@ -328,11 +333,16 @@ def write_file(self, target_path, source_path):

# If this is a .so file, we should set the rpath appropriately.
temp = None
ext = os.path.splitext(source_path)[1]
basename, ext = os.path.splitext(source_path)
if ext in ('.so', '.dylib') or '.so.' in os.path.basename(source_path) or \
(not ext and is_executable(source_path)):

# Scan and add Unix dependencies.
deps = scan_dependencies(source_path)
if target_path not in IGNORE_UNIX_DEPS_OF:
deps = scan_dependencies(source_path)
else:
deps = []

for dep in deps:
# Only include dependencies with relative path. Otherwise we
# end up overwriting system files like /lib/ld-linux.so.2!
Expand Down

0 comments on commit 3a206ed

Please sign in to comment.