5

Where is the current reference for packaging python modules with Python 2.x?

I found the above versions. Which one should I follow?

My modules are simple. Some Python files, some Python scripts and some templates (django).

Update 2021

I am very happy. Finding the maintained tutorial is clear today:

https://packaging.python.org/tutorials/packaging-projects/

guettli
  • 25,042
  • 81
  • 346
  • 663
  • To get an idea of what's coming in future releases, you might want to read PEP 453 and this article: http://lwn.net/Articles/570471/ – ʇsәɹoɈ Oct 24 '13 at 18:50

1 Answers1

1

The setuptools documentation is (probably) the reference you want.

The Hitchhiker’s Guide to Packaging and the Python Packaging User Guide are both community written guides to Python packaging, but may be helpful.

You may also find Differences between distribute, distutils, setuptools and distutils2? useful, as there are multiple packaging tools for Python (the short answer is that for Python 2, you should probably use setuptools).

Community
  • 1
  • 1
borntyping
  • 2,931
  • 2
  • 23
  • 30
  • 1
    The last update to the hitchhiker's guide is from july 2010. The Python Packaging User Guide is a fork, and is still alive. – guettli Oct 07 '13 at 12:19