Finished creating environment: default
/usr/bin/python: No module named pip
Finished installing project in development mode
I think, there are three issues here:
A) I guess, hatch should break with an error, if pip is unavailable.
B) hatch.env.system does not use the python setting of the environment.
Maybe this is intended? Only the virtual environment is documented at the moment. Thus, it is unclear, whether the python setting should be supported by the system environment, too. I just expected it here.
C) hatch prefers /usr/bin/python over /usr/bin/python3
Here on my Debian system /bin/bin/python is still pointing to Python2. This is a valid setup according to PEP-394.
This issue is related to #583. Maybe not all aspects of that issue were fixed by 90a77ef723f464f20bc6c5cf0e71c9776b2ae79d.
Regarding (C): I would suggest to reverse the order of search paths in env.plugin.interface (system_python).
pyproject.toml
file:hatch --verbose env create default
:I think, there are three issues here:
hatch
should break with an error, ifpip
is unavailable.hatch.env.system
does not use thepython
setting of the environment.virtual
environment is documented at the moment. Thus, it is unclear, whether thepython
setting should be supported by thesystem
environment, too. I just expected it here.hatch
prefers/usr/bin/python
over/usr/bin/python3
/bin/bin/python
is still pointing to Python2. This is a valid setup according to PEP-394.This issue is related to #583. Maybe not all aspects of that issue were fixed by 90a77ef723f464f20bc6c5cf0e71c9776b2ae79d.
Regarding (C): I would suggest to reverse the order of search paths in
env.plugin.interface
(system_python
).