mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-27 07:03:36 -04:00
makewheel: Fix Python 2.7 build on macOS
This commit is contained in:
parent
bd218a0a7e
commit
8accdf1136
@ -405,7 +405,12 @@ class WheelFile(object):
|
||||
|
||||
# Now add dependencies. On macOS, fix @loader_path references.
|
||||
if sys.platform == "darwin":
|
||||
is_unsigned = subprocess.call(['codesign', '-d', temp.name], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||
if sys.version_info >= (3, 3):
|
||||
devnull = subprocess.DEVNULL
|
||||
else:
|
||||
devnull = open(os.devnull, 'wb')
|
||||
is_unsigned = subprocess.call(['codesign', '-d', temp.name], stdout=devnull, stderr=devnull)
|
||||
|
||||
if source_path.endswith('deploy-stubw'):
|
||||
deps_path = '@executable_path/../Frameworks'
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user