summary refs log tree commit diff
path: root/.ci
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2023-02-08 12:45:46 +0000
committerDavid Robertson <davidr@element.io>2023-02-08 12:45:46 +0000
commitdccae6408373688e73433adc7cdd95aff314f232 (patch)
treee8771dadb183e464e2cccb89767069da85b6cd6e /.ci
parentBump cryptography from 38.0.4 to 39.0.1 (#15020) (diff)
parentPermalink to the docs (diff)
downloadsynapse-dccae6408373688e73433adc7cdd95aff314f232.tar.xz
Merge branch 'release-v1.77' into develop
Diffstat (limited to '.ci')
-rwxr-xr-x.ci/scripts/auditwheel_wrapper.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/.ci/scripts/auditwheel_wrapper.py b/.ci/scripts/auditwheel_wrapper.py
index a33b39314f..18cd0a7b52 100755
--- a/.ci/scripts/auditwheel_wrapper.py
+++ b/.ci/scripts/auditwheel_wrapper.py
@@ -50,7 +50,16 @@ def cpython(wheel_file: str, name: str, version: Version, tag: Tag) -> str:
 
     check_is_abi3_compatible(wheel_file)
 
-    abi3_tag = Tag(tag.interpreter, "abi3", tag.platform)
+    # HACK: it seems that some older versions of pip will consider a wheel marked
+    # as macosx_11_0 as incompatible with Big Sur. I haven't done the full archaeology
+    # here; there are some clues in
+    #     https://github.com/pantsbuild/pants/pull/12857
+    #     https://github.com/pypa/pip/issues/9138
+    #     https://github.com/pypa/packaging/pull/319
+    # Empirically this seems to work, note that macOS 11 and 10.16 are the same,
+    # both versions are valid for backwards compatibility.
+    platform = tag.platform.replace("macosx_11_0", "macosx_10_16")
+    abi3_tag = Tag(tag.interpreter, "abi3", platform)
 
     dirname = os.path.dirname(wheel_file)
     new_wheel_file = os.path.join(