Open cjolowicz opened 2 years ago
Good find. Embarassingly I had come across this a while back and forgot to investigate.
Do we need to use pipx here?
We can either:
Happy to help with either.
Think your reasoning is right btw, on the 3.10 runs my pipx uses 3.8.
runner@fv-az426-664:~/work/nbpreview/nbpreview$ pipx runpip nox '--version'
pip 22.1 from /opt/pipx/shared/lib/python3.8/site-packages/pip (python 3.8)
runner@fv-az426-664:~/work/nbpreview/nbpreview$ python -V
Python 3.10.4
We can either:
- Install pipx under the proper python, then proceed as usual
- Just use pip itself to install nox and poetry
See https://github.com/cjolowicz/cookiecutter-hypermodern-python/runs/6451683960?check_suite_focus=true
Possible reason: The CI for the Cookiecutter uses the pre-installed pipx to install Poetry. It looks like the pre-installed pipx uses Python 3.9, so Poetry is also installed under that version. As a result, Poetry uses Python 3.9 to create the project environment.