[issue23551] IDLE to provide menu link to PIP gui.

2017-10-31 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___

[issue23551] IDLE to provide menu link to PIP gui.

2017-10-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: For this idea to be revived, someone should write a PEP and open a new issue. -- ___ Python tracker

[issue23551] IDLE to provide menu link to PIP gui.

2017-04-20 Thread Aivar Annamaa
Aivar Annamaa added the comment: In case this issue becomes active again, I'm listing my design implemented in Thonny IDE (http://thonny.org) -- see the attached png. If you decide same design is suitable for IDLE, then I'm happy to create a version of the dialog without Thonny dependencies.

[issue23551] IDLE to provide menu link to PIP gui.

2017-01-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ned Deily and Nick Coughlin vetoed putting a pipgui in the CPython repository -- see #27051. So, for the foreseeable future, there will not be anything to link to. Note: I had to remove the open dependency because the tracker does not differentiate between

[issue23551] IDLE to provide menu link to PIP gui.

2016-06-25 Thread Nick Coghlan
Nick Coghlan added the comment: Virtual environments don't provide any sandboxing, they just let you isolate different dependency sets from each other when switching between working on different applications. If you're inside a venv, you'll see either: sys.prefix != sys.base_prefix (venv

[issue23551] IDLE to provide menu link to PIP gui.

2016-06-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Nick, in answer to msg269259, see last two messages above. The commit would be here and I would want your review before committing. > always using a "--user" install if it doesn't detect an active virtual > environment) I will look up what --user does. You

[issue23551] IDLE to provide menu link to PIP gui.

2016-06-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: It is possible that some institution might block or remove a pip install. IDLE should check for the presence of pip itself before adding the menu entry. -- ___ Python tracker

[issue23551] IDLE to provide menu link to PIP gui.

2016-06-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: 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.

[issue23551] IDLE to provide menu link to PIP gui.

2016-05-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Upendra Kumar's GSOC pip-gui proposal has been accepted. It is issue #27051 and progress can be followed there. I leave this issue open, at least for now, for invoking the gui from IDLE. -- ___ Python tracker

[issue23551] IDLE to provide menu link to PIP gui.

2016-04-07 Thread Eric Khoo Jiun Hooi
Eric Khoo Jiun Hooi added the comment: The search button of search tab still not done yet, so it still cannot be used now -- Added file: http://bugs.python.org/file42396/pip_gui_v5.py ___ Python tracker

[issue23551] IDLE to provide menu link to PIP gui.

2016-04-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: It is wrong for Run Module to open a new shell window when there is a shell window already. But I am not seeing this today with IDLE restarted, so for now, forget about it. V4 is improved, but the list of installed packages is repeated and 2/3 repeated

[issue23551] IDLE to provide menu link to PIP gui.

2016-04-06 Thread Eric Khoo Jiun Hooi
Changes by Eric Khoo Jiun Hooi : Added file: http://bugs.python.org/file42379/pip_gui_v4.py ___ Python tracker ___

[issue23551] IDLE to provide menu link to PIP gui.

2016-04-06 Thread Eric Khoo Jiun Hooi
Eric Khoo Jiun Hooi added the comment: I try to open the script in editor mode and run the script. It restart shell and run the script. I upload the picture of it, is there any wrong with it? -- Added file: http://bugs.python.org/file42378/tem_v3_idle.png

[issue23551] IDLE to provide menu link to PIP gui.

2016-04-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: F5 from the editor, with a Shell window already present. -- ___ Python tracker ___

[issue23551] IDLE to provide menu link to PIP gui.

2016-04-05 Thread Eric Khoo Jiun Hooi
Eric Khoo Jiun Hooi added the comment: Terry, how do you run the script on idle? I try to run the script with idle -r "script name" and it was ok. -- ___ Python tracker

[issue23551] IDLE to provide menu link to PIP gui.

2016-04-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: Eric: some of my comments on Upendra's file apply to yours also. -- ___ Python tracker ___

[issue23551] IDLE to provide menu link to PIP gui.

2016-04-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ensurepip: for the present, I am willing to assume that is pip imports, it is ready to go. try: import pip except ImportError: Testing: testing that runpip works will initially be done by running the app on our live systems. For automated testing of the

[issue23551] IDLE to provide menu link to PIP gui.

2016-04-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: Looking at the last two prototypes, an 'Installed packages' page would not need install, only update and remove. A minor issue. The PyCharm page with Install appears to contain part of an alphabetical listing of all packages on PyPI (there are 1s I

[issue23551] IDLE to provide menu link to PIP gui.

2016-04-03 Thread Upendra Kumar
Upendra Kumar added the comment: I have one doubt about writing unittests for pip_gui. For writing the unittest what should I use as a test instance? For example, if we take particular pip package like : Flask Now, if I have to test the 'get_data_show()' function in temp_pip_v3.py (using the

[issue23551] IDLE to provide menu link to PIP gui.

2016-03-28 Thread Eric Khoo Jiun Hooi
Eric Khoo Jiun Hooi added the comment: Is there any other uses of the ensurepip script? -- ___ Python tracker ___

[issue23551] IDLE to provide menu link to PIP gui.

2016-03-28 Thread Eric Khoo Jiun Hooi
Eric Khoo Jiun Hooi added the comment: >From what I know after reading the ensurepip script, the ensurepip script is >checking whether the pip and it requirement tools are installed right like >get_pip.py that was mention https://pip.pypa.io/en/stable/installing/ ? So, we >have to put it

[issue23551] IDLE to provide menu link to PIP gui.

2016-03-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Sunday morning I posted "Adding a Pip GUI to IDLE and idlelib (GSOC project)" to the pydev list requesting that any objections to the current plan be raised and resolved soon, before final acceptance of a student proposal and official initiation of work on

[issue23551] IDLE to provide menu link to PIP gui.

2016-03-27 Thread Eric Khoo Jiun Hooi
Eric Khoo Jiun Hooi added the comment: @Terry, this is the code segment that I wrote to display the latest as you mention. Do give comment for improvement. -- Added file: http://bugs.python.org/file42308/pip_gui_v3.py ___ Python tracker

[issue23551] IDLE to provide menu link to PIP gui.

2016-03-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: gohlke/pythonlibs/: Search will have to use a custom function. If direct download from url by pip does not work, then we write a custom function to download to a temp file and pip install from local file. (This is suggestion on site.) runpip: It would be

[issue23551] IDLE to provide menu link to PIP gui.

2016-03-25 Thread Aivar Annamaa
Changes by Aivar Annamaa : -- nosy: -Aivar.Annamaa ___ Python tracker ___ ___

[issue23551] IDLE to provide menu link to PIP gui.

2016-03-25 Thread Upendra Kumar
Upendra Kumar added the comment: I had just one more idea after carefully going through all the options provided by pip. Other than the features suggested by Raymond, we should also provide option for installing using proxy settings. Sometimes, configuring proxy can also be tricky while

[issue23551] IDLE to provide menu link to PIP gui.

2016-03-25 Thread Upendra Kumar
Upendra Kumar added the comment: @Terry, I have tried to implement the treeview (as suggested by Alexander) and separate out the functions for retrieving data and displaying data. But, I have doubt on how to separate out the functions for getting data and displaying data. Further, I have

[issue23551] IDLE to provide menu link to PIP gui.

2016-03-25 Thread Eric Khoo Jiun Hooi
Eric Khoo Jiun Hooi added the comment: One more thing, window should be able to install package with pip. So, why the need of http://www.lfd.uci.edu/~gohlke/pythonlibs/ ? -- Added file: http://bugs.python.org/file42284/Design reference from pycharm.png

[issue23551] IDLE to provide menu link to PIP gui.

2016-03-25 Thread Eric Khoo Jiun Hooi
Eric Khoo Jiun Hooi added the comment: Terry, now I have done two more mockup for the installed package tab which is referenced from your suggestion and belopolsky's suggestion. Which you do you prefer? About the http://www.lfd.uci.edu/~gohlke/pythonlibs/ repo that you suggested to be

[issue23551] IDLE to provide menu link to PIP gui.

2016-03-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: As I said on core-mentorship list, I decided that we should use Raymond's initial list for the feature list. If anyone has any elaborations or additions, now is the time to post them. -- ___ Python tracker

[issue23551] IDLE to provide menu link to PIP gui.

2016-03-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Upendra and Eric: get_list_data() should first parse the string into a list of lines with .splitlines. At some point, I think the scrolled list should become a scrolled ttk.Treeview, which can have multiple columns. Then get_line_data should parse each line

[issue23551] IDLE to provide menu link to PIP gui.

2016-03-24 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: You may want to take a look a PyCharm's preferences dialog for inspiration. I am attaching a screenshot. I like the way they show installed and the latest available versions. -- nosy: +belopolsky Added file:

[issue23551] IDLE to provide menu link to PIP gui.

2016-03-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Answering Eric: 'change default repository' would set a value that pip_gui would pass to subsequent install requests with the --index-url option. On Windows, http://www.lfd.uci.edu/~gohlke/pythonlibs/ is essential and should be pre-listed as an option to

[issue23551] IDLE to provide menu link to PIP gui.

2016-03-24 Thread Upendra Kumar
Upendra Kumar added the comment: Here, I have one doubt regarding the get_data function that should the get_data function be a common function for different features for example : def _get_data(self, func_option): """ A separate function for extracting data from the runpip()

[issue23551] IDLE to provide menu link to PIP gui.

2016-03-24 Thread Eric Khoo Jiun Hooi
Eric Khoo Jiun Hooi added the comment: The implementation of features that already provided by command line interface should not be a problem. However, I do not understand how the search for package and change default repository function. Is it going to search the package from other website?

[issue23551] IDLE to provide menu link to PIP gui.

2016-03-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: After running the code, I want to stick with details in the same window. The tab should be a Frame with a PanedWindow on top with list frame on left and detail frame on right. The buttons would be under the paned window. Run Lib/turtledemo/__main__.py

[issue23551] IDLE to provide menu link to PIP gui.

2016-03-24 Thread Steve Dower
Changes by Steve Dower : -- nosy: -steve.dower ___ Python tracker ___ ___

[issue23551] IDLE to provide menu link to PIP gui.

2016-03-24 Thread Eric Khoo Jiun Hooi
Eric Khoo Jiun Hooi added the comment: I also change some of the design like instead of showing the installed package information beside the list, I think that it will be better to show the package information on a new pop up window. You can try to double click the list of search tab and

[issue23551] IDLE to provide menu link to PIP gui.

2016-03-24 Thread Eric Khoo Jiun Hooi
Changes by Eric Khoo Jiun Hooi : Added file: http://bugs.python.org/file42270/GSoC2016Proposal(1).pdf ___ Python tracker ___

[issue23551] IDLE to provide menu link to PIP gui.

2016-03-24 Thread Eric Khoo Jiun Hooi
Eric Khoo Jiun Hooi added the comment: Thank @Terry for your suggestion. I have been working on this few hour to fix and improve the code. I have also add some new feature into the application. Hope you can help me to review it again. Thank. About the proposal, please help me to review it if

[issue23551] IDLE to provide menu link to PIP gui.

2016-03-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Upendra and Eric: I look through and successfully ran both your files as they are, without change. You both show a basic ability to write a simple tkinter app. Upendra's is more complete as a demo because a) it has two tabs that I can switch between, even

[issue23551] IDLE to provide menu link to PIP gui.

2016-03-23 Thread Eric Khoo Jiun Hooi
Changes by Eric Khoo Jiun Hooi : Added file: http://bugs.python.org/file42253/prototype_design.png ___ Python tracker ___

[issue23551] IDLE to provide menu link to PIP gui.

2016-03-23 Thread Eric Khoo Jiun Hooi
Eric Khoo Jiun Hooi added the comment: @Terry, I am also a GSOC 2016 participant. I would also like to work on this project. I had spent a few days to learn the tkinter library and finally finish some code for this project. Hope you can help to review it and giving some feedback. As for the

[issue23551] IDLE to provide menu link to PIP gui.

2016-02-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: On idle-dev, Beni Cherniavsky-Paskin suggested that easily installing into a virtualenv would be a useful option, especially in semi-locked down education setting. I probably agree, as a follow-on feature, but am barely familiar with venvs. --

[issue23551] IDLE to provide menu link to PIP gui.

2016-02-05 Thread Upendra Kumar
Upendra Kumar added the comment: I trying to write the Tk application for the pip package manager. It is in very initial stage, with none of the functionalities implemented yet. I have attached the current state of code written by me. I have also included the wrapper provided by Terri for pip

[issue23551] IDLE to provide menu link to PIP gui.

2016-02-05 Thread Upendra Kumar
Upendra Kumar added the comment: @Terry, I am an intended GSOC student and I came through this idea of developing a GUI based on Tkinter in the python core-mentorship mailing lists. You highlighted/mentioned this issue in the mailing list. -- ___

[issue23551] IDLE to provide menu link to PIP gui.

2016-02-04 Thread Upendra Kumar
Upendra Kumar added the comment: I am trying to make a Tk based GUI for pip package manager. In reference to msg256736, I am confused about the discovery method mentioned. Is there any way already implemented to detect the Python versions installed systemwide? Moreover, how to manage the

[issue23551] IDLE to provide menu link to PIP gui.

2016-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think an initial version of a pip gui need only install to the Python version running it. The py launcher must discover some version of 'all' Python installs to choose, for instance, the latest 3.x version. I do not know the details, nor which system

[issue23551] IDLE to provide menu link to PIP gui.

2016-01-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: On python-list, Chris Angelico reported 2 other problems when running something like "import pip; pip.main(['install','psycopg2'])" from IDLE. Both can be worked around in a pipgui program. 1. pip displays a progress bar by sending to stdout a sequence of

[issue23551] IDLE to provide menu link to PIP gui.

2016-01-13 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue23551] IDLE to provide menu link to PIP gui.

2015-12-28 Thread Aivar Annamaa
Aivar Annamaa added the comment: In case "Open system shell" happens someday, here's my take on this: https://bitbucket.org/plas/thonny/src/master/thonny/plugins/system_shell/ It's a plugin for my beginners' IDE Thonny (http://thonny.cs.ut.ee). It creates a menu item which opens system

[issue23551] IDLE to provide menu link to PIP gui.

2015-12-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: Writing something takes more work than not writing something, but I never used the word 'expensive'. I definitely think a there should be a tkinter-based pip gui. Since there would be no needed interaction with IDLE internals, it should be a stand-alone

[issue23551] IDLE to provide menu link to PIP gui.

2015-12-19 Thread Nick Coghlan
Nick Coghlan added the comment: If anything was to be copied from IPython, then the system shell access feature might be worth considering: http://ipython.readthedocs.org/en/stable/interactive/reference.html#system-shell-access However, a command to launch a suitably configured shell session

[issue23551] IDLE to provide menu link to PIP gui.

2015-12-19 Thread Aivar Annamaa
Aivar Annamaa added the comment: I believe for beginners it's not difficult to enter "pip install package". The trouble is with opening the command prompt, knowing about PATH and different Python versions etc. Terry mentioned GUI development to be more expensive. What about providing a

[issue23551] IDLE to provide menu link to PIP gui.

2015-12-19 Thread Aivar Annamaa
Aivar Annamaa added the comment: Another (more general) alternative: provide a menu item "Open system shell for this Python version", which opens a terminal window with correct Scripts or bin folder in path. -- ___ Python tracker

[issue23551] IDLE to provide menu link to PIP gui.

2015-09-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: On python-ideas, Wes Turner reported Stallion, a visual (browser) + command line package manager interface. I believe it uses pip 'under the hood'. http://perone.github.io/stallion/ has screenshots that can give gui design ideas, though these are more

[issue23551] IDLE to provide menu link to PIP gui.

2015-09-07 Thread Mark Roseman
Changes by Mark Roseman : -- nosy: +markroseman ___ Python tracker ___ ___

[issue23551] IDLE to provide menu link to PIP gui.

2015-09-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: Nick, Paul, Marcus, can any of you answer Saimadhav's question 3 messages up? -- nosy: +Marcus.Smith, ncoghlan, paul.moore title: IDLE to provide menu options for using PIP -> IDLE to provide menu link to PIP gui. versions: +Python 3.6

[issue23551] IDLE to provide menu link to PIP gui.

2015-09-05 Thread Mark Lawrence
Mark Lawrence added the comment: Can we use ideas from https://sites.google.com/site/pydatalog/python/pip-for-windows ? -- ___ Python tracker ___

[issue23551] IDLE to provide menu link to PIP gui.

2015-09-05 Thread Donald Stufft
Donald Stufft added the comment: Yea ``pip.main(args)`` won't change. I'm not sure how well parts of pip will handle being in a persistent-ish process, but the API itself will work. -- ___ Python tracker

[issue23551] IDLE to provide menu link to PIP gui.

2015-09-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: Pip's rather extensive command-line API can also be used as a code API. The signature of pip.main is (args=None), where args = sys.argv[1:] if not passed. I presume this will not change. Reusing the command-list API had the advantage of reusing the existing

[issue23551] IDLE to provide menu link to PIP gui.

2015-09-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: You are right. While multiple info requests work, I found a test that fails. 'list' showed that I had Pillow 2.7.0. 'install -U Pillow' updated to 2.9.0'. 'list' again still showed 2.7.0. 'show Pillow' then failed because 2.7.0 could not be found. After an

[issue23551] IDLE to provide menu link to PIP gui.

2015-09-05 Thread Donald Stufft
Donald Stufft added the comment: There is a "site" config file which works for all installs on that particular machine, there is not a per Python configuration file, though I don't see why we couldn't add one. -- ___ Python tracker

[issue23551] IDLE to provide menu link to PIP gui.

2015-09-05 Thread Donald Stufft
Donald Stufft added the comment: Yea, we'd be willing to fix things where we can. I think the biggest problem you'll run into is probably going to be pkg_resources and it's module scoped cache of the sys.path and what items are installed. -- ___

[issue23551] IDLE to provide menu link to PIP gui.

2015-09-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: The persistence issue is why I tried several calls before posting above. I am hoping that none of your command functions leave pip unusable, or if they do, you would be willing to have them fixed. Attached is promised wrapper. -- Added file:

[issue23551] IDLE to provide menu link to PIP gui.

2015-09-05 Thread Steve Dower
Steve Dower added the comment: I actually made the default per-user, specifically for cases like this. With a default install that the current user has done, pip does not need to be run as admin. If the system administrator has installed Python for all users, then --user needs to be

[issue23551] IDLE to provide menu link to PIP gui.

2015-09-05 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: Hi Terry, Unfortunately, I had to perform a system reinstall, which wiped out the patch. I dont mind doing it again, but it might take until the weekend to complete. Also, now my questions from earlier are answered, it should be easier. --

[issue23551] IDLE to provide menu link to PIP gui.

2015-09-05 Thread Donald Stufft
Donald Stufft added the comment: pip doesn't really support being called as an API, there's been requests for it before but nobody has yet come forward to specify what parts in particular they need. The practical effect of this is that there's no backwards compatibility promises for anything

[issue23551] IDLE to provide menu link to PIP gui.

2015-09-05 Thread Donald Stufft
Changes by Donald Stufft : -- nosy: +steve.dower ___ Python tracker ___ ___