Skip to content

Should setuptools be specified as a dependency in the pyproject.toml? #5090

Closed
@vancoykendall

Description

It seems that triton's python package requires setuptools to be installed at runtime and not just at build time, but its not listed as a dependency in the pyproject.toml. It's only listed in the build-system.requires table.

import setuptools

I'm used uv venv to create my venv which by default doesn't include setuptools (you need to use the --seed flag) , so when I install triton it looks good, but then trying to import triton fails:

  File "/home/my_project/.venv/lib/python3.11/site-packages/triton/runtime/build.py", line 8, in <module>
    import setuptools
ModuleNotFoundError: No module named 'setuptools'

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions