Skip to content

WheelFile extract does not preserve permissions #608

Closed as not planned
Closed as not planned
@gilfree

Description

@gilfree

In issue #514, the command line for wheel unpack was fixed to preserve executable bit for files.

# Set permissions to the same values as they were set in the archive

But this issue still exists when extracting files programmatically.

For example:

wheel = WheelFile(wheel_path)
wheel.extractall(temp_dir )

The issue is of course rooted in the same problem. As extractall and extract methods inherit from zipfile.

Maybe it will be better to override these methods for WheelFile and fix the permissions issue there, instead of in the unpack command?

Will you be open for a PR for such a change?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions