mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-17 12:39:54 +08:00
'install' depends on setuptools on Windows
This commit is contained in:
parent
76a5fa2456
commit
0332489792
12
setup.py
12
setup.py
@ -198,10 +198,18 @@ data_files = find_data_files()
|
||||
|
||||
# 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'
|
||||
if len(set(('develop', 'sdist', 'release', 'bdist_egg', 'bdist_rpm',
|
||||
needs_setuptools = set(('develop', 'sdist', 'release', 'bdist_egg', 'bdist_rpm',
|
||||
'bdist', 'bdist_dumb', 'bdist_wininst', 'install_egg_info',
|
||||
'build_sphinx', 'egg_info', 'easy_install', 'upload',
|
||||
)).intersection(sys.argv)) > 0:
|
||||
))
|
||||
if sys.platform == 'win32':
|
||||
# Depend on setuptools for install on *Windows only*
|
||||
# If we get script-installation working without setuptools,
|
||||
# then we can back off, but until then use it.
|
||||
# See Issue #369 on GitHub for more
|
||||
needs_setuptools.add('install')
|
||||
|
||||
if len(needs_setuptools.intersection(sys.argv)) > 0:
|
||||
import setuptools
|
||||
|
||||
# This dict is used for passing extra arguments that are setuptools
|
||||
|
Loading…
Reference in New Issue
Block a user