summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Smith <brian@dbsoft.org>2022-08-29 18:22:25 -0500
committerBrian Smith <brian@dbsoft.org>2022-08-29 18:22:25 -0500
commit6d127920f84a63a55d299e014b8c0796ddb6babc (patch)
tree944bebebb46bbf738be5554e3e7d7f59c5487d76
parent544366e3010ea16601ff363a2f41df5f84f77d47 (diff)
downloaduxp-6d127920f84a63a55d299e014b8c0796ddb6babc.tar.gz
No Issue - Fix building on MacOS Big Sur.
The python binary copied reports a valid signature on Big Sur and thus codesign fails. Add the -f option so it overwrites the supposedly valid signature. Other versions are either already unsigned or the install_name_tool invalidates the signature.
-rwxr-xr-xpython/virtualenv/virtualenv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/virtualenv/virtualenv.py b/python/virtualenv/virtualenv.py
index d22207e257..60a42e4dcb 100755
--- a/python/virtualenv/virtualenv.py
+++ b/python/virtualenv/virtualenv.py
@@ -1346,7 +1346,7 @@ def install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages, clear, sy
raise
# Resign the executable, since install_name_tool invalidates the signature
- call_subprocess(["codesign", "-s", "-", py_executable])
+ call_subprocess(["codesign", "-fs", "-", py_executable])
if not is_win:
# Ensure that 'python', 'pythonX' and 'pythonX.Y' all exist