Python – Hatch as global python manager
October 14th, 2024 8:46 PM | by Alfred Markus Paar | Posted in Computer, Software
Usage of hatch for pyproject.toml based project.
- Install Hatch as global python manager:
- Unix: where python/Pip already there:
pip install hatch --break-system-packages
- Windows: no python at all:
msiexec /passive /i https://github.com/pypa/hatch/releases/latest/download/hatxh-x64.msi
- Unix: where python/Pip already there:
- Set global hatch config
- To create a .hatch directory in the root of the projects directory:
hatch config set dirs.env.virtual .hatch
- To create a .hatch directory in the root of the projects directory:
- Virtual environment
- Install environment wit dependencies of pyproject.toml:
hatch env create
- Install environment wit dependencies of pyproject.toml:
Tagged env, global, hatch, msiexec, project, python, system, unix, venv, Windows
Leave a Reply