Fix installation of poetry.

This commit is contained in:
Jelmer Vernooij 2021-03-17 03:50:53 +00:00
parent 0f6e8786de
commit 2392907f8e

View file

@ -371,13 +371,7 @@ class PyProject(BuildSystem):
logging.debug(
"Found pyproject.toml with poetry section, " "assuming poetry project."
)
resolver.install(
[
PythonPackageRequirement("venv"),
PythonPackageRequirement("poetry"),
]
)
session.check_call(["poetry", "build", "-f", "sdist"])
run_with_build_fixers(session, ["poetry", "build", "-f", "sdist"], fixers)
return
raise AssertionError("no supported section in pyproject.toml")