Run pypi dependency version override fix over the buildroot too

In cases where the requires.txt is generated, the dependency version
override will need to be run over the buildroot and not just the
source root.

Signed-off-by: William Douglas <william.douglas@intel.com>
This commit is contained in:
William Douglas
2021-10-20 16:00:27 -07:00
committed by William Douglas
parent 668822df6c
commit 448916c193
+2
View File
@@ -1387,6 +1387,8 @@ class Specfile(object):
self._write_strip("python3 -tt setup.py build install --root=%{buildroot}")
if self.config.subdir:
self._write_strip("popd")
for module in self.config.pypi_overrides:
self._write_strip(f"pypi-dep-fix.py %{{buildroot}} {module}")
self._write_strip("echo ----[ mark ]----")
self._write_strip("cat %{buildroot}/usr/lib/python3*/site-packages/*/requires.txt || :")
self._write_strip("echo ----[ mark ]----")