mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Import install command from setuptools if we use them.
This commit fixes bug with option --single-version-externally-managed.
This commit is contained in:
parent
0d01e5a924
commit
6dac3120a8
1 changed files with 2 additions and 1 deletions
3
setup.py
3
setup.py
|
@ -12,7 +12,6 @@ from datetime import datetime
|
|||
from distutils.cmd import Command
|
||||
from distutils.command.build import build
|
||||
from distutils.command.clean import clean
|
||||
from distutils.command.install import install
|
||||
from distutils.sysconfig import get_python_lib, PREFIX
|
||||
|
||||
# Change to salt source's directory prior to running any command
|
||||
|
@ -27,12 +26,14 @@ with_setuptools = False
|
|||
if 'USE_SETUPTOOLS' in os.environ:
|
||||
try:
|
||||
from setuptools import setup
|
||||
from setuptools.command.install import install
|
||||
with_setuptools = True
|
||||
except:
|
||||
with_setuptools = False
|
||||
|
||||
if with_setuptools is False:
|
||||
import warnings
|
||||
from distutils.command.install import install
|
||||
from distutils.core import setup
|
||||
warnings.filterwarnings(
|
||||
'ignore',
|
||||
|
|
Loading…
Add table
Reference in a new issue