Skip to content

Please installed pyi files without executable privileges #1110

@kbrock

Description

@kbrock

Is your feature request related to a problem? Please describe.

We build an env with the python packages.
When we package it up into an rpm, we get dozens of security warnings:

*** WARNING: ./venv/lib64/python3.12/site-packages/pyVmomi/vslm/ServiceInstance.pyi 
is executable but has no shebang, removing executable bit

Please install these files with 644 instead of 755.

Describe the solution you'd like

The files in git are chmod 644, so the way pyproject.toml is written must be running chmod a+x on the files somehow. Sorry I don't understand packaging well enough to put in a PR.

The only way I could find is to use a different way to define the python files or to add a post install python script.

I do notice that the following do need to be chmod 755:

  • pyVmomi/Iso8601.py
  • vsanapiutils.py

(probably would be better if these files are 755 in the git repo)

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions