Skip to content

Commit

Permalink
remove EL8 cruft
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Nov 19, 2023
1 parent 596b7eb commit 34c6c10
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packaging/rpm/python3-wheel.spec
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,14 @@ fi


%install
%{python3} ./setup.py install --prefix %{buildroot}/usr
PYTHONPATH="%{buildroot}%{python3_sitelib}" %{python3} ./setup.py install --prefix %{buildroot}/usr
# we don't want that unusable egg directory
mv %{buildroot}%{python3_sitelib}/%{pypi_name}*egg/wheel %{buildroot}%{python3_sitelib}/
rm -fr %{buildroot}%{python3_sitelib}/%{pypi_name}*egg/EGG-INFO
rmdir %{buildroot}%{python3_sitelib}/%{pypi_name}*egg
rm -fr %{buildroot}%{python3_sitelib}/__pycache__
rm -f %{buildroot}%{python3_sitelib}/easy-install.pth
rm -f %{buildroot}%{python3_sitelib}/site.py
mv %{buildroot}%{_bindir}/%{pypi_name} %{buildroot}%{_bindir}/%{pypi_name}-%{python3_version}

%files -n %{python3}-%{pypi_name}
Expand Down

0 comments on commit 34c6c10

Please sign in to comment.