Commit 80a820fe authored by xoviat's avatar xoviat

tests: pep517: minor cleanup

parent 944976d8
......@@ -34,17 +34,16 @@ class BuildBackend(BuildBackendBase):
return self.pool.submit(
BuildBackendCaller(os.path.abspath(self.cwd), self.env,
self.backend_name),
(name, args, kw)).result()
name, *args, **kw).result()
return method
class BuildBackendCaller(BuildBackendBase):
def __call__(self, info):
def __call__(self, name, *args, **kw):
"""Handles aribrary function invokations on the build backend."""
os.chdir(self.cwd)
os.environ.update(self.env)
name, args, kw = info
return getattr(import_module(self.backend_name), name)(*args, **kw)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment