Skip to content

pybind_root is documented but read by no code — implement or retire? #114

Description

@wdolinar

Split out of the 2026-08-21 repository review, deferred from #112 as a product question rather than a defect.

pybind_root is documented as a build.toml option in README.md and docs/USAGE.md §5.2, but no generator, template, or recipe reads it. A library that sets it gets whatever the default layout would have produced, with nothing said.

#112 added a top-level key whitelist to xmsconan/toml_utils.py that rejects unknown build.toml keys. pybind_root was deliberately kept in the whitelist so consumers that set it keep building — which means the key is currently accepted, documented, and inert.

Two ways out:

  1. Implement it — make the generator honor it wherever the pybind sources root is assumed, and add an option-table row that says what it does.
  2. Retire it — drop it from KNOWN_KEYS, delete the two doc references, and grep the consumer build.toml files for it first (it appears in at least xmscore's).

Either way the whitelist entry and the docs should end up agreeing with the code.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions