#4 Remove bundled dist-info/egg-info directories
Closed 3 years ago by churchyard. Opened 3 years ago by torsava.
rpms/ torsava/python-py master  into  master

file modified
+3
@@ -90,6 +90,9 @@ 

  %install

  %py3_install

  

+ # Remove bundled dist/egg-info directories

+ rm -rf %{buildroot}%{python3_sitelib}/py/_vendored_packages/*.{dist,egg}-info

+ 

  

  %check

  %if %{with tests}

no initial comment

rebased onto e3d6d6a

3 years ago

Hi @thm, I wanted to push a commit to my forked repo to update this PR and instead I accidentally pushed to master on the main repo (with my provenpackager privileges). I should have created a new branch for this PR to avoid any mistake like this. I'm really sorry for touching your package without your permission :/

If you disagree with the change in this PR, I will revert the commit. Again, apologies :(

Don't worry - at first sight I would think that's a reasonable change.

Not sure though whether there could be corner cases where the embedded .*{dist,egg}-info is needed?

Don't worry - at first sight I would think that's a reasonable change.

Not sure though whether there could be corner cases where the embedded .*{dist,egg}-info is needed?

Actually, I found this bug when trying this spec file in RHEL/CentOS where the embedded dist-info are causing an issue. The python3-rpm-generators there has a bug where it looks at all dist-info folders (in Fedora it looks only at the top-level ones) and thus generates wrong Provides for this package.

This PR should not have any effect in Fedora, but will make the specfile safer for EL.

Not sure though whether there could be corner cases where the embedded .*{dist,egg}-info is needed?

I don't think it is, but we'll be affected soon enough if that's that's case. I'll keep an eye on that.

Pull-Request has been closed by churchyard

3 years ago