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:
MinRK 2011-04-11 11:56:47 -07:00
parent 67c6025d9e
commit af196e3446

View File

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