pypa/hatch

PEP723: Using `--system-site-packages`

Open

#1963 opened on Apr 28, 2025

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Python (4,451 stars) (240 forks)batch import
good first issueneeds investigation

Description

This may be more general issue, but how would we define that we want the venv to have --system-site-packages passed? For hatch frontend, maybe the closest would be to add

[tool.hatch.envs.default]
system-site-packages = true

and similarly for each frontend? Would adding that be accounted for in hatch run?

Contributor guide