saltstack/salt — pull request #1400 by benoitbryon (2012-06-05 10:11:15+00:00)
Title: setup.py : use console_scripts instead of scripts when setuptools is available

Hi,

See also #1028.

As @loupgaroublond, I'd like to use salt in a buildout environment (with or without virtualenv). So I'd like salt to support setuptools' console_scripts entry point.

**These changes should work with both distutils and setuptools. So that it shouldn't be backward incompatible.**

However, I must admit I tried within a setuptools-enabled environment, and not in a "only distutils" environment. I tried not to break distutils support, but tell me if I did something wrong.