Remove bundled dist-info/egg-info directories

This commit is contained in:
Tomas Orsava 2021-01-14 16:05:48 +01:00
parent f6f4907311
commit 5255af1235

View File

@ -90,6 +90,11 @@ rm -rf doc/_build/html/.buildinfo
%install
%py3_install
# Remove bundled dist/egg-info directories, they shouldn't be shipped for
# bundled modules and in some cases they could confuse automatic generators
# that read the dist/egg-info data.
rm -rf %{buildroot}%{python3_sitelib}/py/_vendored_packages/*.{dist,egg}-info
%check
%if %{with tests}