From 025b0a2957c06335f539ec2d92ac3da00c9658ed Mon Sep 17 00:00:00 2001 From: Min RK Date: Tue, 22 Sep 2015 20:03:14 +0200 Subject: [PATCH] use more conservative rule to pull in setuptools setuptools shouldn't be used for 'sdist upload' --- setup.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/setup.py b/setup.py index 3d7587fa9..8718b8853 100755 --- a/setup.py +++ b/setup.py @@ -130,14 +130,7 @@ setup_args['cmdclass'] = { # Handle scripts, dependencies, and setuptools specific things #--------------------------------------------------------------------------- -# For some commands, use setuptools. Note that we do NOT list install here! -# If you want a setuptools-enhanced install, just run 'setupegg.py install' -needs_setuptools = set(('develop', 'release', 'bdist_egg', 'bdist_rpm', - 'bdist', 'bdist_dumb', 'bdist_wininst', 'bdist_wheel', - 'egg_info', 'easy_install', 'upload', 'install_egg_info', - )) - -if len(needs_setuptools.intersection(sys.argv)) > 0: +if any(arg.startswith('bdist') for arg in sys.argv): import setuptools # This dict is used for passing extra arguments that are setuptools