Skip to content

Unpacking statsmodels wheel using the wheel package doesn't work #7956

@hoodmane

Description

@hoodmane

Describe the bug

I am trying to move Pyodide over to using wheels to distribute packages pyodide/pyodide#2027. After building the wheel, we need to do some postprocessing so we use python -m wheel unpack wheel-name.whl, then rearrange the wheel as appropriate, then pack the wheel again. The PyPa wheel package does not correctly handle commas in file names, so it breaks on statsmodels because of the following files:

statsmodels/datasets/tests/raw.github.com,vincentarelbundock,Rdatasets,master,csv,car,Duncan.csv.zip
statsmodels/datasets/tests/raw.github.com,vincentarelbundock,Rdatasets,master,datasets.csv.zip
statsmodels/datasets/tests/raw.github.com,vincentarelbundock,Rdatasets,master,doc,car,rst,Duncan.rst.zip

I made a pull request over at pypa/wheel#427 to fix it.

Code Sample, a copy-pastable example if possible

python3.9 setup.py bdist_wheel
python3.9 -m wheel unpack dist/statsmodels-0.9.0-cp39-cp39-linux_x86_64.whl

Expected Output

It should succeed.

What happens instead

It prints:

Unpacking to: ./statsmodels-0.9.0...No hash found for file 'statsmodels/datasets/tests/raw.github.com,vincentarelbundock,Rdatasets,master,csv,car,Duncan.csv.zip'

and quits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions