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 upendra-k14
Recipients lorenzogotuned, terry.reedy, upendra-k14
Date 2016-06-01.17:14:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1464801258.56.0.838528011024.issue27051@psf.upfronthosting.co.za>
In-reply-to
Content
@Terry, code updates can be followed on https://github.com/upendra-k14/pip_gui/tree/dump_code

Please review the code in dump_code branch. For now, only pip_gui_v3.py is relevant. 

1.  I had doubt about including a private module from pip ( "pip._vendor" ). As this module contains a lot of important utilites I have included it by copying the "_vendor" module in my package and changed all the package references of 
"pip._vendor" to "pip_tkinter._vendor" to make it work. Since, it was a private module, I included it by copying it. 

One more reason is that pip has mentioned this module has immutable. There are very less chances that further changes in this module will be introduced in future.

2.  Except a few complex commands like install, I have planned to inherit the pip command classes. For example, I have inherited the pip.commands.SearchCommand class from pip and overrided the "run" method. It helped me to give finer control over the search results. 

For example,

Now we can retrieve all previous versions of a package ( which is not provided by pip ) and search results can be directly obtained in form of tuple lists without parsing the output.
But, I think doing something similar for pip.commands.InstallCommand is very difficult. Therefore, for now I have chosen to use "runpip and pip.main" for pip install command.
History
Date User Action Args
2016-06-01 17:14:18upendra-k14setrecipients: + upendra-k14, terry.reedy, lorenzogotuned
2016-06-01 17:14:18upendra-k14setmessageid: <1464801258.56.0.838528011024.issue27051@psf.upfronthosting.co.za>
2016-06-01 17:14:18upendra-k14linkissue27051 messages
2016-06-01 17:14:18upendra-k14create