pypa / hatch

Modern, extensible Python project management
https://hatch.pypa.io/latest/
MIT License
6.1k stars 309 forks source link

environment type "system" ignores "python" setting #1820

Open sumpfralle opened 2 days ago

sumpfralle commented 2 days ago
  1. minimal pyproject.toml file:
    [tool.hatch.envs.default]
    python = "/usr/bin/python3"
    type = "system"
  2. create environment: hatch --verbose env create default:
    Finished creating environment: default
    /usr/bin/python: No module named pip
    Finished installing project in development mode

I think, there are three issues here:

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).