Skip to content

Make targets don't use venv #2403

@ericsnowcurrently

Description

@ericsnowcurrently

When I run make pep0684.html, it fails because docutils & Pygments are not installed. This demonstrates several problems:

  1. Makefile makes no effort to run tools in a venv
  2. Makefile ignores the current venv if you run make with that venv activated
  3. Makefile hard-codes $(PYTHON) to /usr/bin/python3, so requirements.txt must be installed on the system Python (though usually under $HOME/.local)
  4. make venv creates a venv but it is pointless due to the above problems
  5. CI hides the problems

(2) and (3) are mostly addressed by #2402. However, (1) and (2) are not. I would expect most of the make targets to automatically create a venv with requirements.txt installed and run in that venv. (Aside: pre-config should be added to requirements.txt.)

Metadata

Metadata

Assignees

Labels

infraCore infrastructure for building and rendering PEPs

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions