Merge branch 'main' of https://github.com/jelmer/ognibuild
This commit is contained in:
commit
2a29cf67fa
1 changed files with 3 additions and 7 deletions
|
@ -322,13 +322,9 @@ class SetupPy(BuildSystem):
|
||||||
self._run_setup(session, resolver, preargs + ["sdist"], fixers)
|
self._run_setup(session, resolver, preargs + ["sdist"], fixers)
|
||||||
return
|
return
|
||||||
elif self.pyproject:
|
elif self.pyproject:
|
||||||
if "poetry" in self.pyproject.get("tool", []):
|
run_with_build_fixers(session, [self.DEFAULT_PYTHON, "-m", "pep517.build", "--source"], fixers)
|
||||||
logging.debug(
|
return
|
||||||
"Found pyproject.toml with poetry section, " "assuming poetry project."
|
raise AssertionError("no setup.py or pyproject.toml")
|
||||||
)
|
|
||||||
run_with_build_fixers(session, ["poetry", "build", "-f", "sdist"], fixers)
|
|
||||||
return
|
|
||||||
raise AssertionError("no supported section in pyproject.toml")
|
|
||||||
|
|
||||||
def clean(self, session, resolver, fixers):
|
def clean(self, session, resolver, fixers):
|
||||||
if self.has_setup_py:
|
if self.has_setup_py:
|
||||||
|
|
Loading…
Add table
Reference in a new issue