Please see my separate thread about PEP 668. https://discuss.python.org/t/pep-668-how-to-integrate-pipx-into-my-development-workflow-how-to-pytest-on-a-pipx-e-installed-package