From 1b4c6fdd207af593a00d513dd7e5515b870f8147 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Wed, 10 May 2023 00:50:15 -0500 Subject: [PATCH] Work-around a venv bug that breaks the generated requirements.txt --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 796e23e..d3bd654 100644 --- a/Makefile +++ b/Makefile @@ -215,9 +215,12 @@ update-sphinx: destroy-sphinx-venv install_new_sphinx ## Produce a sphinx package version requirement file ## able to reproduce the existing sphinx venv ## (Copy to doc/requirements.txt to make effective.) +# The grep works-around a bug that's in Debian 11's venv code .PHONY: $(PREFIX)/requirements.txt.new $(PREFIX)/requirements.txt.new: install-sphinx - $(SPHINX_VENV)/bin/pip freeze > doc/requirements.txt.new + $(SPHINX_VENV)/bin/pip freeze \ + | grep -vF 'pkg_resources==0.0.0' \ + > doc/requirements.txt.new ## ## Lesser used targets are: -- 2.34.1