Merge branch 'develop' of git://github.com/saltstack/salt into develop

This commit is contained in:
Dan Colish 2012-06-30 13:29:10 -07:00
commit ef523b02f0

View File

@ -14,13 +14,17 @@ from distutils.sysconfig import get_python_lib, PREFIX
# Use setuptools if available, else fallback to distutils.
# As an example, setuptools is available in virtualenvs and buildouts through
# Setuptools or Distribute.
with_setuptools = False
if 'SETUPTOOLS' in os.environ:
try:
from setuptools import setup
with_setuptools = True
except ImportError:
from distutils.core import setup
except:
with_setuptools = False
if with_setuptools == False:
from distutils.core import setup
exec(compile(open("salt/version.py").read(), "salt/version.py", 'exec'))