From 990756af9806b5dfd35af564bdcd82a6e2212182 Mon Sep 17 00:00:00 2001 From: MinRK Date: Fri, 21 Feb 2014 01:57:14 -0800 Subject: [PATCH] adjust dependency check for gnureadline on OS X - always depend when making a bdist (for consistency) - otherwise only depend if missing (e.g. pip install -e) --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 59077d95f..89f4a3ed8 100755 --- a/setup.py +++ b/setup.py @@ -279,7 +279,8 @@ for deps in extras_require.values(): extras_require['all'] = everything install_requires = [] if sys.platform == 'darwin': - install_requires.append('gnureadline') + if any(arg.startswith('bdist') for arg in sys.argv) or not setupext.check_for_readline(): + install_requires.append('gnureadline') elif sys.platform.startswith('win'): # Pyreadline has unicode and Python 3 fixes in 2.0 install_requires.append('pyreadline>=2.0')