mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
makewheel: don't try to resolve deps with absolute path
This commit is contained in:
parent
a7752da4f1
commit
a0af670dc7
@ -304,17 +304,23 @@ class WheelFile(object):
|
||||
# Temporary hack for 1.9, which had link deps on modules.
|
||||
return
|
||||
|
||||
source_path = None
|
||||
if sys.platform == "darwin" and dep.startswith("/System/"):
|
||||
return
|
||||
|
||||
if search_path is None:
|
||||
search_path = self.lib_path
|
||||
if dep.startswith('/'):
|
||||
source_path = dep
|
||||
else:
|
||||
source_path = None
|
||||
|
||||
for lib_dir in search_path:
|
||||
# Ignore static stuff.
|
||||
path = os.path.join(lib_dir, dep)
|
||||
if os.path.isfile(path):
|
||||
source_path = os.path.normpath(path)
|
||||
break
|
||||
if search_path is None:
|
||||
search_path = self.lib_path
|
||||
|
||||
for lib_dir in search_path:
|
||||
# Ignore static stuff.
|
||||
path = os.path.join(lib_dir, dep)
|
||||
if os.path.isfile(path):
|
||||
source_path = os.path.normpath(path)
|
||||
break
|
||||
|
||||
if not source_path:
|
||||
# Couldn't find library in the panda3d lib dir.
|
||||
|
Loading…
x
Reference in New Issue
Block a user