Allow running setup.py from any directory.

This commit is contained in:
Pedro Algarvio 2012-12-30 17:55:23 +00:00
parent 0ca8fb9c67
commit e37da07241

View file

@ -12,6 +12,9 @@ from distutils.cmd import Command
from distutils.command.clean import clean
from distutils.sysconfig import get_python_lib, PREFIX
# Change to salt source's directory prior to running any command
os.chdir(os.path.dirname(__file__))
# Use setuptools only if the user opts-in by setting the USE_SETUPTOOLS env var
# This ensures consistent behavior but allows for advanced usage with
# virtualenv, buildout, and others.