More work on factoring out resolver.

This commit is contained in:
Jelmer Vernooij 2021-02-09 02:11:02 +00:00
parent 713a624b00
commit fa222a6ae4
No known key found for this signature in database
GPG key ID: 579C160D4C9E23E8
8 changed files with 399 additions and 226 deletions

View file

@ -15,16 +15,16 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
from .buildsystem import detect_buildsystems, NoBuildToolsFound
from .buildsystem import NoBuildToolsFound
def run_build(session, resolver):
def run_build(session, buildsystems, resolver):
# Some things want to write to the user's home directory,
# e.g. pip caches in ~/.cache
session.create_home()
for buildsystem in detect_buildsystems(session):
buildsystem.build(resolver)
for buildsystem in buildsystems:
buildsystem.build(session, resolver)
return
raise NoBuildToolsFound()