Python Packaging (2013 Edition)

About a year ago, I set out to get a solid working understanding of Python packaging, resulting in a lengthy blog post of what I learned. There have been some significant course changes over that year such that my original post is wrong in several regards.

Here’s a summary of some of the big changes:

  • Python Packaging User Guide” replaces “The Hitchhiker’s Guide to Packaging” as a good reference for packaging information. In fact, the Python Packaging User Guide is now The Source of All Truth. If you want to know what is going on, go there. It is, however, still under construction.
  • Setuptools and Distribute have now been merged, and the result is… Setuptools. Whereas Setuptools was “old and busted” and Distribute was the “new hotness”, it is now the other way around — so long as you’re talking about the latest and greatest Setuptools (version >= 0.7).
  • Distutils2, which switched out setup.py for setup.cfg, and was on the verge of going into Python 3.3, was dropped.

Pip continues as the distribution installer of choice, though, as indicated in the current recommendations.

Leave a Reply

Your email address will not be published. Required fields are marked *