Skip to content

Commit 7a9347d

Browse files
author
Release Manager
committed
Trac #33155: Broken install using system pythons < 3.10 from python.org macOS packages
As reported in https://groups.google.com/g/sage- release/c/gTNMEVbzb6M/m/2lXjD6tFAgAJ: Installation of pplpy fails: {{{ ERROR: pplpy-0.8.6-cp39-cp39-macosx_11_0_x86_64.whl is not a supported wheel on this platform." }}} (`wheel` uses this tag based on the inspection of the deployment targets of the built dynamic libraries - this is done in https://github.com/pypa/wheel/blob/main/src/wheel/macosx_libfile.py) The wheel tagged such then does not pass the compatibility test because of: pypa/packaging#497 Ingredients of this bug: - https://docs.python.org/3/library/platform.html#macos-platform - https://github.com/pypa/pip/blob/main/src/pip/_vendor/packaging/tags.py (vendored version of `packaging`) URL: https://trac.sagemath.org/33155 Reported by: mkoeppe Ticket author(s): Matthias Koeppe Reviewer(s): Dima Pasechnik
2 parents fe634f8 + 2ff46ea commit 7a9347d

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

build/bin/sage-pip-install

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ PIP=pip3
3030
# running pip. This is implemented in the Python script sage-flock
3131
LOCK="$SAGE_LOCAL/var/lock/$PIP.lock"
3232

33+
# Trac #33155: Pythons installed using the python.org macOS installers
34+
# for Python < 3.10 identify macOS Big Sur and newer as "10.16", causing
35+
# pip to refuse to install wheels tagged macosx_11_0_x86_64
36+
export SYSTEM_VERSION_COMPAT=0
37+
3338
# Finally actually do the installation (the "SHARED" tells pip2/3-lock
3439
# to apply a shared lock)
3540
sage-flock -s $LOCK $PYTHON -m pip install $pip_install_flags "$@"

build/pkgs/configure/checksums.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
tarball=configure-VERSION.tar.gz
2-
sha1=04ea0aba601daa81d8f840f8bab94a22d3c3744b
3-
md5=c83199b816e177cce63699cdf9787347
4-
cksum=411599226
2+
sha1=2f464579d16393f5f1aef59355c639a038472c98
3+
md5=3ee485b7894abb2c7b025f84a68508b1
4+
cksum=2582706230
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
b87c1e67b632d87df82a66cc0ae259d3a63b9ca8
1+
7fd88116e4d200b760f7d38523ce65927044c815

0 commit comments

Comments
 (0)