Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions scripts/release/rpm/azure-cli.spec
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ deactivate
for d in %{buildroot}%{cli_lib_dir}/bin/*; do perl -p -i -e "s#%{buildroot}##g" $d; done;
rm %{buildroot}%{cli_lib_dir}/pyvenv.cfg

# Remove vendored binaries with foreign shebangs that cause RPM dependency issues
# Use || true to not fail if path doesn't exist

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

man rm output shows that this particular case is already covered. If there are any other issues, || true will hide them.

       -f, --force
              ignore nonexistent files and arguments, never prompt

rm -rf %{buildroot}%{cli_lib_dir}/lib/python*/site-packages/setuptools/_vendor/bin || true

# Create executable (entry script)

# For PYTHONPATH:
Expand Down