Do not install the pip.whl with executable permissions
The wheel file is never executed, it has no shebang
(yes, zips can have shebangs).
bash: /usr/share/python-wheels/pip-....whl: cannot execute binary file: Exec format error
This executable permission was never intended,
it only happens to be the default for the install command.
This commit is contained in:
parent
ac655bc5de
commit
e0d87e4172
1 changed files with 1 additions and 1 deletions
|
|
@ -305,7 +305,7 @@ sed -i -e "s/^\\(complete.*\\) pip%{python3_version}\$/\\1 pip%{python3_version}
|
|||
|
||||
# Install the built wheel and inject SBOM into it (if the macro is available)
|
||||
mkdir -p %{buildroot}%{python_wheel_dir}
|
||||
install -p %{_pyproject_wheeldir}/%{python_wheel_name} -t %{buildroot}%{python_wheel_dir}
|
||||
install -pm0644 %{_pyproject_wheeldir}/%{python_wheel_name} -t %{buildroot}%{python_wheel_dir}
|
||||
%{?python_wheel_inject_sbom:%python_wheel_inject_sbom %{buildroot}%{python_wheel_dir}/%{python_wheel_name}}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue