mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-18 11:55:46 +08:00
use more conservative rule to pull in setuptools
setuptools shouldn't be used for 'sdist upload'
This commit is contained in:
parent
05fd944e33
commit
025b0a2957
9
setup.py
9
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
|
||||
|
Loading…
Reference in New Issue
Block a user