mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-18 11:55:46 +08:00
make display_status optional at runtime in setupext
This allow the check_for_readline to *not* print its indented status line closes gh-361 closes gh-20
This commit is contained in:
parent
67c6025d9e
commit
af196e3446
7
setup.py
7
setup.py
@ -62,7 +62,7 @@ from setupbase import (
|
||||
check_for_dependencies,
|
||||
record_commit_info,
|
||||
)
|
||||
from setupext.setupext import check_for_readline
|
||||
from setupext import setupext
|
||||
|
||||
isfile = os.path.isfile
|
||||
pjoin = os.path.join
|
||||
@ -220,9 +220,10 @@ if 'setuptools' in sys.modules:
|
||||
test='nose>=0.10.1',
|
||||
)
|
||||
requires = setup_args.setdefault('install_requires', [])
|
||||
if not check_for_readline():
|
||||
setupext.display_status = False
|
||||
if not setupext.check_for_readline():
|
||||
if sys.platform == 'darwin':
|
||||
requires.append('readline')
|
||||
requires.append('readline')
|
||||
elif sys.platform.startswith('win'):
|
||||
requires.append('pyreadline')
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user