mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Allow running setup.py
from any directory.
This commit is contained in:
parent
0ca8fb9c67
commit
e37da07241
1 changed files with 3 additions and 0 deletions
3
setup.py
3
setup.py
|
@ -12,6 +12,9 @@ from distutils.cmd import Command
|
||||||
from distutils.command.clean import clean
|
from distutils.command.clean import clean
|
||||||
from distutils.sysconfig import get_python_lib, PREFIX
|
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
|
# 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
|
# This ensures consistent behavior but allows for advanced usage with
|
||||||
# virtualenv, buildout, and others.
|
# virtualenv, buildout, and others.
|
||||||
|
|
Loading…
Add table
Reference in a new issue