nixpkgs/pkgs/development/python-modules/pytensor
sergioahp 2c1ae5e61c
python3Packages.pytensor: add setuptools runtime dependency
PyTensor imports setuptools at runtime during JIT/C compilation:
- pytensor/link/c/cmodule.py imports setuptools._distutils.sysconfig
- pytensor/link/c/exceptions.py imports setuptools.errors

Upstream declares setuptools>=59.0.0 in dependencies:
a314476f23/pyproject.toml (L50)

Without this, python3.withPackages environments fail at runtime with:
ModuleNotFoundError: No module named 'setuptools'

Fixes runtime import errors when using pytensor or packages that depend on it (e.g., pymc).
2026-01-16 04:53:09 -06:00
..
default.nix python3Packages.pytensor: add setuptools runtime dependency 2026-01-16 04:53:09 -06:00