only look for build-backend when pyproject is present.
This commit is contained in:
parent
f176b3c596
commit
a94cf977c0
1 changed files with 3 additions and 2 deletions
|
@ -218,8 +218,9 @@ class SetupPy(BuildSystem):
|
|||
self.pyproject = self.load_toml()
|
||||
except FileNotFoundError:
|
||||
self.pyproject = None
|
||||
|
||||
self.build_backend = self.pyproject.get("build-system", {}).get('build-backend')
|
||||
self.build_backend = None
|
||||
else:
|
||||
self.build_backend = self.pyproject.get("build-system", {}).get('build-backend')
|
||||
|
||||
def load_toml(self):
|
||||
import toml
|
||||
|
|
Loading…
Add table
Reference in a new issue