sagemath/sage

cygwin python3 missing ensurepip

mkoeppe opened this issue · 11 comments

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

CC: @tscrim @slel

Component: porting: Cygwin

Author: Matthias Koeppe

Branch/Commit: d835afc

Reviewer: Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/34088

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
+

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
+

Commit: d835afc

New commits:

d835afcbuild/pkgs/python3/distros/cygwin.txt: Add packages needed for ensurepip

Author: Matthias Koeppe

comment:8

lgtm

comment:9

Thanks!