Another useful feature of setup()
is that it can create various types of "distribution" formats. It will take all of the modules you've specified and bundle them up into packages that are easy to distribute to others. You can do this with the sdist
command (which is shorthand for 'source distribution'):
(palindrome_env)$ python setup.py sdist --format zip running sdist running check warning: check: missing required meta-data: url warning: sdist: manifest template 'MANIFEST.in' does not exist (using default file list) warning: sdist: standard file not found: should have one of README, README.txt writing manifest file 'MANIFEST' creating palindrome-1.0 making hard links in palindrome-1.0... hard linking palindrome.py -> palindrome-1.0 hard linking setup.py -> palindrome-1.0 creating dist creating 'dist/palindrome-1.0.zip' and adding 'palindrome-1.0' to it adding 'palindrome-1.0/palindrome.py' adding 'palindrome-1.0/PKG-INFO' adding 'palindrome-1.0/setup.py...