From 9417c4071dd3ce4c473c2a7e349206d97255cee4 Mon Sep 17 00:00:00 2001 From: MinRK Date: Fri, 21 Feb 2014 12:16:19 -0800 Subject: [PATCH] only depend on readline package in CPython shouldn't try to install it on PyPy not sure about PyReadline on PyPy on Windows --- setupbase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setupbase.py b/setupbase.py index 8bfd5bc52..acbdb9dfc 100644 --- a/setupbase.py +++ b/setupbase.py @@ -641,8 +641,8 @@ def get_bdist_wheel(): for pkg in ("gnureadline", "pyreadline"): _remove_startswith(requires, pkg) - requires.append("gnureadline; sys.platform == 'darwin'") - requires.append("pyreadline (>=2.0); sys.platform == 'win32'") + requires.append("gnureadline; sys.platform == 'darwin' and platform.python_implementation == 'CPython'") + requires.append("pyreadline (>=2.0); sys.platform == 'win32' and platform.python_implementation == 'CPython'") for r in requires: pkg_info['Requires-Dist'] = r write_pkg_info(metadata_path, pkg_info)