use more conservative rule to pull in setuptools

setuptools shouldn't be used for 'sdist upload'
This commit is contained in:
Min RK 2015-09-22 20:03:14 +02:00
parent 05fd944e33
commit 025b0a2957

View File

@ -130,14 +130,7 @@ setup_args['cmdclass'] = {
# Handle scripts, dependencies, and setuptools specific things # Handle scripts, dependencies, and setuptools specific things
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
# For some commands, use setuptools. Note that we do NOT list install here! if any(arg.startswith('bdist') for arg in sys.argv):
# 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:
import setuptools import setuptools
# This dict is used for passing extra arguments that are setuptools # This dict is used for passing extra arguments that are setuptools