Filter Unknown distribution option's when not installing with setuptools.

This commit is contained in:
Pedro Algarvio 2013-01-14 13:41:42 +00:00
parent 6354cbf741
commit 0f5386cb35

View file

@ -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