Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pythonforandroid/pythonpackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,10 +436,11 @@ def _extract_metainfo_files_from_package_unsafe(
os.path.join(output_path, 'pyproject.toml')
)

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

# Get a virtualenv with build requirements and get all metadata:
env = BuildEnvironment()
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ deps =
# makes it possible to override pytest args, e.g.
# tox -- tests/test_graph.py
commands = pytest {posargs:tests/}
setenv =
PYTHONPATH={toxinidir}

[testenv:pep8]
deps = flake8
Expand Down