Skip to content

[BUG] wheel install_as_egg does not honor file mode #3166

Description

@delijati

setuptools version

setuptools.version '60.2.0'

Python version

= 3.8

OS

Manjaro

Additional environment information

No response

Description

Files installed via Wheel.install_as_egg have the same file mode as installed via pip install

Expected behavior

Files installed via Wheel.install_as_egg have the same file mode as installed via pip install. Needed here buildout/buildout#604

How to Reproduce

Install via pip:

virtuelenv env
env/bin/pip install kaleido

Check mode:

❯ stat -c "%a" env/lib/python3.8/site-packages/kaleido/executable/kaleido                                         
755

Install via install_as_egg:

import setuptools.wheel

if __name__ == "__main__":
    whl = setuptools.wheel.Wheel("kaleido-0.2.1-py2.py3-none-manylinux1_x86_64.whl")
    whl.install_as_egg("./foo")

Check mode:

❯ stat -c "%a" foo/kaleido/executable/kaleido                 
644

Output

# ABOVE

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs TriageIssues that need to be evaluated for severity and status.bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions