Bug in python312 package: WHEEL_PKG_DIR not set in _sysconfigdata__cygwin_x86_64-cygwin.py

trevor@welsby.de trevor@welsby.de
Tue Apr 29 13:58:29 GMT 2025


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',


More information about the Cygwin mailing list