py-archspec: replace removed .build_directory with .stage.source_path (#34521)

This commit is contained in:
finkandreas 2022-12-15 00:00:21 +01:00 committed by GitHub
parent ea029442e6
commit 2db38bfa38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,7 +30,7 @@ class PyArchspec(PythonPackage):
def patch(self):
# See https://python-poetry.org/docs/pyproject/#poetry-and-pep-517
with working_dir(self.build_directory):
with working_dir(self.stage.source_path):
if self.spec.satisfies("@:0.1.3"):
filter_file("poetry>=0.12", "poetry_core>=1.0.0", "pyproject.toml")
filter_file("poetry.masonry.api", "poetry.core.masonry.api", "pyproject.toml")