make readline a dependency on OSX and pyreadline on Windows

closes gh-343
This commit is contained in:
MinRK 2011-04-08 17:04:24 -07:00
parent cf9b16d19d
commit 131086119a
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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