cygwin python3 missing ensurepip
mkoeppe opened this issue · 11 comments
mkoeppe commented
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/cygwin@cygwin.com/msg170799.html
One needs the packages python-pip-wheel and python-setuptools-wheel, which provide (very outdated) wheels
Component: porting: Cygwin
Author: Matthias Koeppe
Branch/Commit: d835afc
Reviewer: Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/34088
mkoeppe commented
Description changed:
---
+++
@@ -1,3 +1,18 @@
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/cygwin@cygwin.com/msg170799.html
+mkoeppe commented
Description changed:
---
+++
@@ -16,3 +16,5 @@
https://www.mail-archive.com/cygwin@cygwin.com/msg170799.html
+One needs the packages `python-pip-wheel` and `python-setuptools-wheel`, which provide (very outdated) wheels
+mkoeppe commented
mkoeppe commented
New commits:
d835afc | build/pkgs/python3/distros/cygwin.txt: Add packages needed for ensurepip |
mkoeppe commented
Author: Matthias Koeppe
mkoeppe commented
dimpase commented
Changed reviewer from https://github.com/sagemath/sagetrac-mirror/actions/runs/2612748980 to Dima Pasechnik
dimpase commented
comment:8
lgtm
mkoeppe commented
comment:9
Thanks!
vbraun commented
Changed branch from u/mkoeppe/cygwin_python3_missing_ensurepip to d835afc