Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't rely on setuptools for readline dependency check #361

Closed
wants to merge 2 commits into from

Conversation

minrk
Copy link
Member

@minrk minrk commented Apr 11, 2011

ddale reported (#343 (comment)) an issue with the readline dependency.

I imagine this is because setuptools does not actually know about packages that it did not install, so readline installed by other means (my guess from his path is that he uses macports) will not show up.

This commit does explicit import checks, rather than trusting setuptools to find the dependency.

requires.append('pyreadline')
if not check_for_readline():
if sys.platform == 'darwin':
requires.append('readline')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra indentation

@ddale
Copy link
Contributor

ddale commented Apr 11, 2011

That works, although it also yields "readline: yes" printed in the terminal.

This allow the check_for_readline to *not* print its indented status line
@minrk
Copy link
Member Author

minrk commented Apr 11, 2011

fixed the extra line by making the check_for_x functions printing optional

@fperez
Copy link
Member

fperez commented Apr 12, 2011

great, go ahead and merge then. Thanks to @ddale for the checks and review!

@minrk minrk closed this in 901196b Apr 12, 2011
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
This allow the check_for_readline to *not* print its indented status line

closes ipythongh-361
closes ipythongh-20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants