mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Filter Unknown distribution option
's when not installing with setuptools.
This commit is contained in:
parent
6354cbf741
commit
0f5386cb35
1 changed files with 7 additions and 0 deletions
7
setup.py
7
setup.py
|
@ -29,7 +29,14 @@ if 'USE_SETUPTOOLS' in os.environ:
|
|||
with_setuptools = False
|
||||
|
||||
if with_setuptools is False:
|
||||
import warnings
|
||||
from distutils.core import setup
|
||||
warnings.filterwarnings(
|
||||
'ignore',
|
||||
'Unknown distribution option: \'(install_requires|zip_safe)\'',
|
||||
UserWarning,
|
||||
'distutils.dist'
|
||||
)
|
||||
|
||||
try:
|
||||
# Add the esky bdist target if the module is available
|
||||
|
|
Loading…
Add table
Reference in a new issue