Skip to content

Commit

Permalink
Trac #34088: cygwin python3 missing ensurepip
Browse files Browse the repository at this point in the history
https://github.com/mkoeppe/sage/runs/7056478444?check_suite_focus=true
{{{
configure:35118: checking for python3 >= 3.8.0, < 3.11.0 with modules
sqlite3, ctypes, math, hashlib, crypt, socket, zlib, distutils.core,
ssl, ensurepip
configure:35803: result:
configure:35832: checking ... whether /usr/bin/python3 is good
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.9/ensurepip/__init__.py", line 30, in <module>
    _SETUPTOOLS_VERSION = _get_most_recent_wheel_version("setuptools")
  File "/usr/lib/python3.9/ensurepip/__init__.py", line 27, in
_get_most_recent_wheel_version
    return str(max(_wheels[pkg], key=distutils.version.LooseVersion))
ValueError: max() arg is an empty sequence
configure:36413: result: no, the version is in the supported range but
cannot import one of the required modules: sqlite3, ctypes, math,
hashlib, crypt, socket, zlib, distutils.core, ssl, ensurepip
}}}

https://www.mail-archive.com/[email protected]/msg170799.html

One needs the packages `python-pip-wheel` and `python-setuptools-wheel`,
which provide (very outdated) wheels

URL: https://trac.sagemath.org/34088
Reported by: mkoeppe
Ticket author(s): Matthias Koeppe
Reviewer(s): Dima Pasechnik
  • Loading branch information
Release Manager committed Jul 8, 2022
2 parents 9879ff4 + d835afc commit 9440e71
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build/pkgs/python3/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# as of #27824, we use python3 for venv as well
python39-devel
# #34088 - make ensurepip work
python-pip-wheel
python-setuptools-wheel

0 comments on commit 9440e71

Please sign in to comment.