This is a static archive of the Python wiki, which was retired in February 2026 due to lack of usage and the resources necessary to serve it — predominately to bots, crawlers, and LLM companies.
Pages are preserved as they were at the time of archival. For current information, please visit python.org.
If a change to this archive is absolutely needed, requests can be made via the infrastructure@python.org mailing list.

Setup as a Class not a procedure

—David Lyon

Let's modernise setup and make it Object Oriented.

This will make it more user friendly and easier to learn and use.

To do this, we'll need to:

1) Extend setup.cfg to hold more/all-of the metadata

2) Turn 'setup' into a class (rather than a procedure)

3) Provide member information:

4) self.pre_setup() - A method run before setup

5) self.post_setup() - A method for post-install configuration


2026-02-14 16:07