The 'ensurepip' module '__init__.py' requires a pip wheel to be included either in the '_bundled' subdirectory or else in the directory referenced by the 'WHEEL_PKG_DIR' variable in '/usr/lib/python3.12/_sysconfigdata__cygwin_x86_64-cygwin.py'.

In python packages prior to 3.12 it was the former, but it appears it is now the latter - the 'python-pip-wheel' package installs it in '/usr/share/python-wheels'. This causes venv creation via 'python -m venv' to fail in the '__init__.py' file of the 'ensurepip' module.

To fix this line 1294 of '/usr/lib/python3.12/_sysconfigdata__cygwin_x86_64-cygwin.py' should be changed to:

'WHEEL_PKG_DIR': '/usr/share/python-wheels',

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to