Have a look at the Python package tutorialPython package tutorial. There are several ways described there: distutils and easyinstall are the main ones. Note that some nix distributions will package things in their own format (.deb, rpm, etc) so you may look at those as well.
Update link to Python packaging documentation. Current URL notes that "This guide is no longer being maintained".