Skip to content

Wheel fails without useful error message when --wheel-dir not writable #246

@timb07

Description

@timb07

When wheel is invoked specifying a non-writable destination directory with --wheel-dir, it fails but doesn't give an error indicating the cause of the failure.

$ pip3 wheel --wheel-dir=not_writable_directory .
Processing /home/user/example_pkg
Building wheels for collected packages: example-pkg
  Running setup.py bdist_wheel for example-pkg ... done
  Running setup.py clean for example-pkg
Failed to build example-pkg
ERROR: Failed to build one or more wheels

Adding -vvv to the pip3 command line provides more output but still no useful error message.

I would expect to see something like:

Failed to write not_writable_directory/example_pkg-0.0.1-py3-none-any.whl: permission denied

Reproducable using the minimal example at https://packaging.python.org/tutorials/packaging-projects/.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions