mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-17 12:39:54 +08:00
make readline a dependency on OSX and pyreadline on Windows
closes gh-343
This commit is contained in:
parent
cf9b16d19d
commit
131086119a
5
setup.py
5
setup.py
@ -218,6 +218,11 @@ if 'setuptools' in sys.modules:
|
||||
doc='Sphinx>=0.3',
|
||||
test='nose>=0.10.1',
|
||||
)
|
||||
requires = setup_args.setdefault('install_requires', [])
|
||||
if sys.platform == 'darwin':
|
||||
requires.append('readline')
|
||||
elif sys.platform.startswith('win'):
|
||||
requires.append('pyreadline')
|
||||
|
||||
# Script to be run by the windows binary installer after the default setup
|
||||
# routine, to add shortcuts and similar windows-only things. Windows
|
||||
|
@ -310,7 +310,7 @@ def check_for_dependencies():
|
||||
print_line, print_raw, print_status,
|
||||
check_for_sphinx, check_for_pygments,
|
||||
check_for_nose, check_for_pexpect,
|
||||
check_for_pyzmq
|
||||
check_for_pyzmq, check_for_readline
|
||||
)
|
||||
print_line()
|
||||
print_raw("BUILDING IPYTHON")
|
||||
@ -327,7 +327,7 @@ def check_for_dependencies():
|
||||
check_for_nose()
|
||||
check_for_pexpect()
|
||||
check_for_pyzmq()
|
||||
|
||||
check_for_readline()
|
||||
|
||||
def record_commit_info(pkg_dir, build_cmd=build_py):
|
||||
""" Return extended build command class for recording commit
|
||||
|
Loading…
Reference in New Issue
Block a user