mirror of
https://github.com/clearlinux/autospec.git
synced 2026-08-21 06:26:18 +00:00
buildreq: Sometimes install requires are also build requires
This imporves the ability for pypi ecosystem pyproject packages to build more consistently. Might consider making this a last attempt if build fails instead though to avoid adding spurious buildreqs. Signed-off-by: William Douglas <william.douglas@intel.com>
This commit is contained in:
committed by
William Douglas
parent
0c780b3205
commit
cbc91dfe71
@@ -604,7 +604,9 @@ class Requirements(object):
|
||||
if 'options' in setup_f.sections() and (install_reqs := setup_f['options'].get('install_requires')):
|
||||
for req in install_reqs.splitlines():
|
||||
if dep := clean_python_req(req):
|
||||
self.add_requires(f"pypi({dep})", packages, subpkg="python3")
|
||||
req = f"pypi({dep})"
|
||||
self.add_buildreq(req)
|
||||
self.add_requires(req, packages, subpkg="python3")
|
||||
|
||||
def add_setup_py_requires(self, filename, packages):
|
||||
"""Detect build requirements listed in setup.py in the install_requires and setup_requires lists.
|
||||
|
||||
Reference in New Issue
Block a user