python-setup: Make debug printing more obvious

This commit is contained in:
Rasmus Wriedt Larsen 2023-01-13 11:24:02 +01:00
parent 2649b6603a
commit 2f6d17472d
No known key found for this signature in database

View file

@ -9,7 +9,7 @@ try:
print(os.path.dirname(os.path.dirname(pip.__file__)))
except ImportError:
import sys
print("could not import pip", file=sys.stderr)
print("DEBUG: could not import pip", file=sys.stderr)
# if you use poetry with `virtualenvs.options.no-pip = true` you might end up with a
# virtualenv without pip, so the above trick doesn't actually work. See
# https://python-poetry.org/docs/configuration/#virtualenvsoptionsno-pip