mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -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.
|
# Temporary hack for 1.9, which had link deps on modules.
|
||||||
return
|
return
|
||||||
|
|
||||||
source_path = None
|
if sys.platform == "darwin" and dep.startswith("/System/"):
|
||||||
|
return
|
||||||
|
|
||||||
if search_path is None:
|
if dep.startswith('/'):
|
||||||
search_path = self.lib_path
|
source_path = dep
|
||||||
|
else:
|
||||||
|
source_path = None
|
||||||
|
|
||||||
for lib_dir in search_path:
|
if search_path is None:
|
||||||
# Ignore static stuff.
|
search_path = self.lib_path
|
||||||
path = os.path.join(lib_dir, dep)
|
|
||||||
if os.path.isfile(path):
|
for lib_dir in search_path:
|
||||||
source_path = os.path.normpath(path)
|
# Ignore static stuff.
|
||||||
break
|
path = os.path.join(lib_dir, dep)
|
||||||
|
if os.path.isfile(path):
|
||||||
|
source_path = os.path.normpath(path)
|
||||||
|
break
|
||||||
|
|
||||||
if not source_path:
|
if not source_path:
|
||||||
# Couldn't find library in the panda3d lib dir.
|
# Couldn't find library in the panda3d lib dir.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user