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

ipython-qtconsole script isn't installed for Python 2.x #1516

Closed
aidecoe opened this issue Mar 23, 2012 · 13 comments · Fixed by #2037
Closed

ipython-qtconsole script isn't installed for Python 2.x #1516

aidecoe opened this issue Mar 23, 2012 · 13 comments · Fixed by #2037

Comments

@aidecoe
Copy link

aidecoe commented Mar 23, 2012

Please see bug https://bugs.gentoo.org/show_bug.cgi?id=407823

@takluyver
Copy link
Member

How does Gentoo install the package? On my (Ubuntu) system, running python3 setup.py install installs a script called ipython3-qtconsole.

The ipython[3]-qtconsole script is only installed when an installation uses setuptools, rather than distutils, and is mainly intended for Windows use - on Linux, ipython qtconsole is the recommended way to start it. Because installing on Python 3 always uses setuptools, you'll always get a Python 3 version of the script, but it should have the 3 suffix.

@aidecoe
Copy link
Author

aidecoe commented Mar 23, 2012

For every available version of python setup.py is eventually called like: python2.7 setup.py [options], python3.2 setup.py [options] and so on and eventually end up with ipython-qtconsole-3.2 script and no ipython-qtconsole-2.7. As you suggested, for python 2.7 distutils are used. If ipython-qtconsole could be installed for distutils variant as well it would solve the issue. Another approach would be from Gentoo side and just drop qtconsole script and inform users to use "ipython qtconsole" as you suggested. But setup install also .desktop files and also only for python 3. It would be nice to have them both for python 2 and 3.

@takluyver
Copy link
Member

You can force it to use setuptools on all installations by using setupegg.py in place of setup.py. We don't make that the default because we don't want setuptools to be a strict dependency.

@fperez
Copy link
Member

fperez commented Mar 23, 2012

This looks to me more like a distribution issue than anything we can change on our side...

@minrk
Copy link
Member

minrk commented Mar 24, 2012

The issue from our side is that it's confusing - sometimes ipython-qtconsole exists, and sometimes it doesn't. The fact is, it probably shouldn't exist anywhere but Windows, and that's an easy fix from us. We can just exclude the ipython-qtconsole gui_script everywhere but Windows, so it's clearer what the point is: an executable on the one platform where setuptools makes useful double-click targets.

@aidecoe
Copy link
Author

aidecoe commented Mar 24, 2012

Yes, some consistent solution would be good. I considered either to write some wrapper script to use setuptools both for python2 and 3 or remove ipython-qtconsole. So if you're going to remove it, I'll take same approach in current versions. Thanks.

@minrk
Copy link
Member

minrk commented Mar 24, 2012

PR #1521 removes ipython-qtconsole except on Windows.

@aidecoe
Copy link
Author

aidecoe commented Mar 24, 2012

Thank you.

@fperez
Copy link
Member

fperez commented Jun 23, 2012

This can be closed, right?

@minrk
Copy link
Member

minrk commented Jun 23, 2012

This has not been fixed (PR #1521 didn't work, and wasn't merged).

@fperez
Copy link
Member

fperez commented Jun 23, 2012

Ah, I saw it was closed and didn't check why... OK, stays open then.

@minrk
Copy link
Member

minrk commented Jun 23, 2012

The endpoint of #1521 was that this was a more sensible approach:

Maybe we shouldn't have this entry point at all, and only add the qtconsole to the Start Menu. That way it's in a clearer Windows-only role.

@fperez
Copy link
Member

fperez commented Jun 23, 2012

Sounds OK to me...

@fperez fperez closed this as completed in 94a96b8 Jun 25, 2012
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
For Windows installation, remove `ipython-qtconsole` gui-script and simply use `ipython qtconsole`.

QtConsole entry in the Windows Start Menu is updated appropriately.

Closes ipython#1516.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants