예제 #1
0
 def _read_pyproject(self):
     # type: () -> None
     pyproject = self.path_to("pyproject.toml")
     if os.path.exists(pyproject):
         self._pyproject = toml.load(pyproject)
         build_system = self._pyproject.get("build-system", None)
         if not os.path.exists(self.path_to("setup.py")):
             if not build_system or not build_system.get("requires"):
                 build_system = {
                     "requires": ["setuptools>=40.8.0", "wheel"],
                     "build-backend": get_default_pyproject_backend(),
                 }
             self._build_system = build_system
예제 #2
0
 def build_backend(self):
     # type: () -> str
     return self._build_system.get("build-backend",
                                   get_default_pyproject_backend())