REA setup.py notes (unofficial)

Last updated: · By the RepoRead editorial team · Unofficial guide
Quick answer

setup.py pins setuptools imperative-config identity. In REA 6.7.x, treat selected strings/kwargs as Evidence beside archive/package routes — complementing cousins without inventing APIs. Prefer reading text over executing foreign scripts.

Mental model

  1. Authorize the setup.py (+ artifacts you hold).
  2. Quote selected name/version/install_requires pins you actually see (never paste secrets / tokens).
  3. Cousins → setup-cfg · setup-flags · pip-requirements.
  4. Bind absolute paths honestly → rea-absolute-paths.
  5. Do not invent a inspect_setup_py API REA never called.

Minimal path

# authorized setup.py (+ artifact you hold)
# quote selected setup() kwargs into case notes — do not execute untrusted scripts
# cousins → setup-cfg / setup-flags / pip-requirements
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_setup_py .

Compare

ArtifactHonest posture
setup.pysetuptools imperative-config identity facts
setup.cfg lanerea-setup-cfg
setup-flags lanerea-setup-flags
Evidence binderrea-evidence-explained

Scope we will not cover

  • No inventing inspect_setup_py / automatic setup.py execution.
  • No credential theft from env / tokens / repository credentials in scripts.
  • No pirate redistribution of paid packages.
  • No crack framing via config pins.

RepoRead is unofficial. Prefer config honesty + DISCLAIMER.md.

FAQ

How is this different from rea-setup-cfg?

rea-setup-cfg covers declarative setup.cfg Evidence. This page zooms on setup.py imperative identity — it does not overwrite that page.

Is there inspect_setup_py in 6.7.0?

Not assumed. Quote kwargs / strings you actually open. Do not invent inspect_setup_py.

Does REA execute setup.py for you?

No. Local trees only. Do not run untrusted setup.py. No credential theft.

setup.py vs setup.cfg vs pyproject.toml?

Label Evidence by the file present. Prefer reading text; do not execute foreign setup scripts.

npm version checked?

rea-agents 6.7.0 (re-checked 2026-10-24).

Sources