Skip to content

main/py3-mako: add missing dependency and enable check()

Keith Maxwell requested to merge maxwell-k/aports:py3-mako into master

Before this change:

$ dabuild sh
$ sudo apk add py3-mako >/dev/null && mako-render --help | head -n 1
Traceback (most recent call last):
  File "/usr/bin/virtualenv", line 6, in <module>
    from pkg_resources import load_entry_point
ModuleNotFoundError: No module named 'pkg_resources'

This change adds py3-setuptools as a runtime dependency because pkg_resources is imported by a file installed into /usr/bin/:

$ grep pkg_resources /usr/bin/mako-render
from pkg_resources import load_entry_point

pkg_resources is part of py3-setuptools:

$ apk info -L py3-setuptools | grep pkg_resources/__init__.py
usr/lib/python3.8/site-packages/pkg_resources/__init__.py

After this change:

$ dabuild sh
$ sudo apk add py3-mako >/dev/null && mako-render --help | head -n 1
usage: mako-render [-h] [--var VAR] [--template-dir TEMPLATE_DIR]
Edited by Keith Maxwell

Merge request reports

Loading