Home Explore Blog CI



nixpkgs

doc/hooks/python.section.md
95a5c139580f7d28b003f51cd9ab72a466a154b3bacf6de000000003000000ae
# Python {#setup-hook-python}

Adds the `python.sitePackages` subdirectory (i.e. `lib/pythonX.Y/site-packages`) of each build input to the `PYTHONPATH` environment variable.

Chunks
ad684bd9 (1st chunk of `doc/hooks/python.section.md`)
Title: Python Setup Hook
Summary
This section describes the Python setup hook for Nix. It automatically adds the `site-packages` subdirectory of each build input to the `PYTHONPATH` environment variable, making Python packages available during the build process.