Home Explore Blog CI



nixpkgs

1st chunk of `doc/hooks/python.section.md`
ad684bd9f9aff8aaf2f7b6099ebcc94dd14ea7484dc7802e00000001000000ae
# 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.

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.