Skip to content

OSS release exports drop pyproject.toml files; Polygraphy can't be built from source since 11.3 #4894

Open

Description

@ConnorBaker

Description

The 11.3 OSS export (98adec8) deleted every pyproject.toml in the repo: there are nine at v11.2 (demo/Diffusion, demo/Diffusion/tests, five under python/packaging and two under tools/onnx-graphsurgeon) and none at v11.3, v11.4 or main. It has happened before: the 11.0 export (771d8ef) deleted demo/Diffusion/pyproject.toml, which #4707 had added. #4890 (python/packaging/bindings_wheel/pyproject.toml) is another symptom.

For Polygraphy this breaks the documented build. The 11.3 export also removed tools/Polygraphy/setup.py and setup.cfg and switched the Makefile and install.ps1 to python -m build --wheel (CHANGELOG v0.49.34: "Migrated the build system to pyproject.toml"), but Polygraphy's own pyproject.toml isn't in the tree at v11.3, v11.4 or main. So the README's "Building From Source" steps fail.

Could the export be fixed so it stops dropping pyproject.toml files? Restoring Polygraphy's is the immediate case. For reference, this commit adds one that reproduces the metadata of the polygraphy 0.53.6 wheel on PyPI, and I can open it as a PR: main...ConnorBaker:TensorRT:polygraphy-add-pyproject-toml

Environment

TensorRT Version: OSS v11.4 (16ed063, also main); Polygraphy 0.53.6

NVIDIA GPU: N/A (packaging only)

NVIDIA Driver Version: N/A

CUDA Version: N/A

CUDNN Version: N/A

Operating System: Linux x86_64

Python Version (if applicable): 3.14.8, build 1.5.1

Tensorflow Version (if applicable): N/A

PyTorch Version (if applicable): N/A

Baremetal or Container (if so, version): Nix build sandbox, no container

Relevant Files

Model link: N/A

Steps To Reproduce

Commands or scripts:

git clone --depth 1 --branch v11.4 https://github.com/NVIDIA/TensorRT && cd TensorRT/tools/Polygraphy
make install
ERROR Source .../TensorRT/tools/Polygraphy does not appear to be a Python project: no pyproject.toml or setup.py
make: *** [Makefile:69: build] Error 1

Have you tried the latest release?: Yes, v11.4 is the latest, and main is the same commit.

Can this model run on other frameworks? For example run ONNX model with ONNXRuntime (polygraphy run <model.onnx> --onnxrt): N/A

AI disclosure: this report was prepared with Claude Code (Claude Opus 5.5).

🤖 Generated with Claude Code

Activity

  1. added a commit that references this issue on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Module:Polygraphy

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions