remove direct_url.json file and sed it out from RECORD
With PEP 610 there is created new file direct_url.json since is not useful for us, it will be removed using py3_install_wheel macro. See: https://discuss.python.org/t/pep-610-usage-guidelines-for-linux-distributions/4012
This commit is contained in:
parent
fed99a0478
commit
daf7d32612
4 changed files with 23 additions and 1 deletions
|
|
@ -44,6 +44,12 @@
|
|||
%py_install_wheel() %{expand:\\\
|
||||
pip install -I dist/%{1} --root %{buildroot} --strip-file-prefix %{buildroot} --no-deps
|
||||
rm -rfv %{buildroot}%{_bindir}/__pycache__
|
||||
for distinfo in %{buildroot}%{python_sitelib}/*.dist-info %{buildroot}%{python_sitearch}/*.dist-info; do
|
||||
if [ -f ${distinfo}/direct_url.json ]; then
|
||||
rm -fv ${distinfo}/direct_url.json
|
||||
sed -i '/direct_url.json/d' ${distinfo}/RECORD
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
%python_provide() %{lua:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue