More work on factoring out resolver.
This commit is contained in:
parent
713a624b00
commit
fa222a6ae4
8 changed files with 399 additions and 226 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue