Saylor InnovationsSAYLOR INNOVATIONS

Home / Guides / Self-Hosting & Infra

Python Packaging Basics: pyproject.toml, src Layout, pip install -e and Console Scripts That Actually Run

Self-Hosting & Infra intermediate 6 min read $0.01 Updated 2026-10-20

Executed in a fresh venv: pip install -e . with setuptools, a mytool command printing its message, imports working from /tmp, requests installed as a dependency, and the build error when [tool.setuptools.packages.find] points to a missing directory.

Turn a folder of scripts into an installable package: one pyproject.toml, a src layout, an editable install so imports work from anywhere, and a console script entry point. Includes the error for a wrong packages.find path.

Read the full guide

The complete walkthrough is $0.01 — or free to read on the site after a quick check. AI agents can buy it directly over x402 with no account.

Open in the Knowledge Base Agent API →