Fix deletion of /usr/bin/easy_install during bootstrap

This commit is contained in:
Tomas Orsava 2017-08-29 11:50:56 +02:00
parent a9c42b4249
commit 35eb21a12d

View File

@ -209,15 +209,16 @@ find %{buildroot}%{platform_python_sitelib} -name '*.exe' | xargs rm -f
%if %{without bootstrap} %if %{without bootstrap}
%py3_install_wheel %{python3_wheelname} %py3_install_wheel %{python3_wheelname}
# TODO: we have to remove this by hand now, but it'd be nice if we wouldn't have to # Remove /usr/bin/easy_install from the record as later on we delete the file
# (pip install wheel doesn't overwrite)
rm %{buildroot}%{_bindir}/easy_install
sed -i '/\/usr\/bin\/easy_install,/d' %{buildroot}%{python3_record} sed -i '/\/usr\/bin\/easy_install,/d' %{buildroot}%{python3_record}
%else %else
%py3_install %py3_install
%endif %endif
# TODO: we have to remove this by hand now, but it'd be nice if we wouldn't have to
# (pip install wheel doesn't overwrite)
rm %{buildroot}%{_bindir}/easy_install
rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests
%if %{without bootstrap} %if %{without bootstrap}
sed -i '/^setuptools\/tests\//d' %{buildroot}%{python3_record} sed -i '/^setuptools\/tests\//d' %{buildroot}%{python3_record}