Python specs.

This commit is contained in:
Jelmer Vernooij 2021-03-01 16:28:23 +00:00
parent a8663e0eaa
commit 693b6382ae
No known key found for this signature in database
GPG key ID: 579C160D4C9E23E8
2 changed files with 30 additions and 9 deletions

View file

@ -349,9 +349,14 @@ def fix_missing_python_module(error, context):
targeted = set()
default = not targeted
pypy_pkg = get_package_for_python_module(context.apt, error.module, "pypy", None)
py2_pkg = get_package_for_python_module(context.apt, error.module, "python2", None)
py3_pkg = get_package_for_python_module(context.apt, error.module, "python3", None)
if error.minimum_version:
specs = [('>=', error.minimum_version)]
else:
specs = []
pypy_pkg = get_package_for_python_module(context.apt, error.module, "pypy", specs)
py2_pkg = get_package_for_python_module(context.apt, error.module, "python2", specs)
py3_pkg = get_package_for_python_module(context.apt, error.module, "python3", specs)
extra_build_deps = []
if error.python_version == 2: