# 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
996eb12c (1st chunk of `doc/hooks/python.section.md`)
Title: Python Environment Variable Configuration
Summary
This configuration adds the `python.sitePackages` subdirectory (e.g., `lib/pythonX.Y/site-packages`) from each build input to the `PYTHONPATH` environment variable.