This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients Marcus.Smith, Saimadhav.Heblikar, belopolsky, dstufft, erickhoo, markroseman, ncoghlan, paul.moore, peter.otten, rhettinger, terry.reedy, upendra-k14
Date 2016-06-25.20:32:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1466886766.33.0.682561501818.issue23551@psf.upfronthosting.co.za>
In-reply-to
Content
Starting with June 20 msg268947 of #27051, Ned Deily raised the issue of adding something to the stdlib that depends on an external interface.  Nick Coughlin agreed that this is problematical.  Pipgui might have to be installed into site-packages from PyPI.

Once pipgui is installed on somewhere on the path, it does not matter where, as IDLE will use some variant of '<current-executable> -m pipgui'.  The issue is getting it installed *somewhere*.

Module mainmenu (Bindings in 3.5) uses the following code to conditionally add 'Turtle Demo' to the IDLE menu.

from importlib.util import find_spec
menudefs = ...
if find_spec('turtledemo'):
    menudefs[-1][1].append(('Turtle Demo', '<<open-turtle-demo>>'))

I believe the issue is that some Linux distributions either do or might make installing turtle-turtledemo a separate option from Tkinter and IDLE, so that IDLE might be installed but turtledemo not.  If turtledemo is not present, there is nothing for IDLE to do.

If pipgui is pip-installable, the same condition could be used , but in the menu event handler. When "if find_spec('pip') and not find_spec('pipgui')" is true, IDLE could offer to run 'python -m pip install pipgui' in a subprocess.
History
Date User Action Args
2016-06-25 20:32:46terry.reedysetrecipients: + terry.reedy, rhettinger, paul.moore, ncoghlan, peter.otten, belopolsky, markroseman, dstufft, Marcus.Smith, Saimadhav.Heblikar, upendra-k14, erickhoo
2016-06-25 20:32:46terry.reedysetmessageid: <1466886766.33.0.682561501818.issue23551@psf.upfronthosting.co.za>
2016-06-25 20:32:46terry.reedylinkissue23551 messages
2016-06-25 20:32:45terry.reedycreate