ansible/ansible — pull request #6497 by abadger (2014-03-14 20:48:35+00:00)
Title: Feature/multi version import

multi-version import that lets us use a newer-than-the-default pycrypto package.

This implementation replaces the distutils setup function in setup.py with the one from setuptools. The advantage is that we're then able to specify which version of pycrypto we need in setup.py and that information is then pushed out to the egg-info in a manner that setuptools can read. This means that we can then set each script to require ansible and setuptools' (its pkg_rsources module) will look up the deps for ansible and make sure that those are installed and the correct version.

If desired, this implementation could be further enhanced so that different scripts could require different dependencies: http://pythonhosted.org/setuptools/setuptools.html#declaring-extras-optional-features-with-their-own-dependencies