pypa / wheel

The official binary distribution format for Python
MIT License
505 stars 150 forks source link

assert on hardcoded tags list is unsuitable for experimental cross compilation environnements #606

Open pmp-p opened 7 months ago

pmp-p commented 7 months ago

This break hpy wasm build for me : https://github.com/pypa/wheel/blob/fa33dfd01fd665c1fd90097563b34bce4b5527ef/src/wheel/bdist_wheel.py#L354

Those are NOT expected to be officially supported anyway

cp313-cp313t-emscripten_3_1_57_wasm32
cp313-none-emscripten_3_1_57_wasm32
py313-none-emscripten_3_1_57_wasm32

"emscripten_3_1_57" never represented an abi anyway see https://github.com/python/cpython/issues/96426#issuecomment-1271144421

henryiii commented 7 months ago

Quick workaround if you need it - since it's an "assert", you could disable assertions by running Python in optimized mode (-O or PYTHONOPTIMIZE=TRUE).