From 5255af12354b411f7baa037472334b1c6ab9e11a Mon Sep 17 00:00:00 2001 From: Tomas Orsava Date: Thu, 14 Jan 2021 16:05:48 +0100 Subject: [PATCH] Remove bundled dist-info/egg-info directories --- python-py.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python-py.spec b/python-py.spec index 4c4d00f..a71c4b5 100644 --- a/python-py.spec +++ b/python-py.spec @@ -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}