Skip to content

Commit f74d4f3

Browse files
committed
[ci] Fix python_package_basic tests error: pep517.wrappers.BackendUnavailable
This error is raised when we try to get the metadata from a package and this happens because we forgot to first install the build requirements from the `pyproject.toml` file
1 parent 55f3ffb commit f74d4f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pythonforandroid/pythonpackage.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,10 +436,11 @@ def _extract_metainfo_files_from_package_unsafe(
436436
os.path.join(output_path, 'pyproject.toml')
437437
)
438438

439-
# Get build backend from pyproject.toml:
439+
# Get build backend and requirements from pyproject.toml:
440440
with open(os.path.join(path, 'pyproject.toml')) as f:
441441
build_sys = pytoml.load(f)['build-system']
442442
backend = build_sys["build-backend"]
443+
build_requires.extend(build_sys["requires"])
443444

444445
# Get a virtualenv with build requirements and get all metadata:
445446
env = BuildEnvironment()

0 commit comments

Comments
 (0)