Permalink
Browse files

don't rely on setuptools for readline dependency check

  • Loading branch information...
1 parent db2dba6 commit c85668ce2c2b751b2d258ad392a45e6e02e1c2e4 @minrk committed Apr 11, 2011
Showing with 9 additions and 4 deletions.
  1. +9 −4 setup.py
View
13 setup.py
@@ -62,6 +62,7 @@
check_for_dependencies,
record_commit_info,
)
+from setupext.setupext import check_for_readline
isfile = os.path.isfile
pjoin = os.path.join
@@ -219,10 +220,14 @@ def cleanup():
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')
+ if not check_for_readline():
+ if sys.platform == 'darwin':
+ requires.append('readline')
+ elif sys.platform.startswith('win'):
+ requires.append('pyreadline')
+ else:
+ pass
+ # do we want to install readline here?
# Script to be run by the windows binary installer after the default setup
# routine, to add shortcuts and similar windows-only things. Windows

0 comments on commit c85668c

Please sign in to comment.