Skip to content

make check doesn't work on vanilla Ubuntu 22.04 #2567

@DimitriPapadopoulos

Description

@DimitriPapadopoulos

⇒ Should we switch from python and pytest to python3 and pytest-3?


  1. Command python is not available by default on a vanilla installation. Package python3-minimal provides python3, and package python-is-python3, which is not installed by default, provides python:
$ make check-distutils
python setup.py check --restructuredtext --strict
make: python: No such file or directory
make: *** [Makefile:51: check-distutils] Error 127
$ 

We call python here:

codespell/Makefile

Lines 50 to 51 in 458de80

check-distutils:
python setup.py check --restructuredtext --strict


  1. Command pytest is not available, instead package python3-pytest provides pytest-3:
$ make pytest
pytest codespell_lib
make: pytest: No such file or directory
make: *** [Makefile:57: pytest] Error 127
$ 

We call pytest here:

codespell/Makefile

Lines 56 to 57 in 458de80

pytest:
pytest codespell_lib

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions