Upendra Kumar added the comment:
I have tried to inquire about the possibility of a pip API, however currently
it doesn't seem that it is top priority for pip organisation as per these issue
threads :
1. https://github.com/pypa/pip/issues/924
2. https://github.com/pypa/pip/issues
Upendra Kumar added the comment:
@Terry, I believe pip package doesn't solve the core purpose of GUI. Instead of
that I should make a .deb, .rpm or .exe package so that beginners can directly
install it. However, I will create the PyPI package by 10t
Upendra Kumar added the comment:
@Terry,
The attached files contain the master branch of the pip_gui. It contains all
the work done by me till now in pip_gui.
If this projects need to be continued as open source project, is it expected to
be continued as independent project, or CPython
Upendra Kumar added the comment:
Can I somehow change the setup.py script such that I can create a new set of
(group, user) with specific privileges only needed for installation and
uninstallation.
Once a new set of (group, user) is created, I can always do
os.setgid(gid) and os.setuid(uid
Upendra Kumar added the comment:
I facing problems in running the GUI application with root or elevated
privileges. I earlier used gksudo for linux. It turns out be a not very general
solution as all linux distros don't have gksudo.
Therefore, how to manage user permissions or
Upendra Kumar added the comment:
@Terry,
I am switching between different frames using frame.tkraise() method in order
to switch the user attention.
Now, if I want to test which frame is at top what should I check for or which
parameter I should check
Upendra Kumar added the comment:
For using threading with Tkinter there are two options : either to use
threading or asyncio ( coroutines ). Because asyncio is easier as compared to
threading, therefore I would like to use it.
But, coroutines are available only in Python >=3.5. Theref
Upendra Kumar added the comment:
Refer to : msg269285
This is the code :
...
from pip_tkinter.utils import pip_install_from_PyPI
curr_item = self.multi_items_list.scroll_tree.focus()
item_dict = self.multi_items_list.scroll_tree.item(curr_item
Upendra Kumar added the comment:
I am trying something similar to BrownTruck in issue :
https://github.com/pypa/pip/pull/3733
I tried to execute pip.main('install','-U',) from a thread.
I got a similar error :
Traceback (most recent call last):
File "/usr/local/li
Upendra Kumar added the comment:
In ref. to msg269264:
@Terry, I am ready to maintain this project. But for as backup is concerned I
really don't know a lot of people and where should I look for them.
In reference to msg269038:
I was more engrossed in reading through other messages re
Upendra Kumar added the comment:
Sorry for trouble. I think I messed up with my Python installation. I
reinstalled Python and pip. The "pip install command issue" is fixed.
--
___
Python tracker
<http://bugs.python.o
Upendra Kumar added the comment:
Hey, can anyone help me with this code :
###
Python 3.4.3 (default, Oct 14 2015, 20:33:09)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "licens
Upendra Kumar added the comment:
For blog posts related to this project, here is the blog link :
https://scorython.wordpress.com
For now, there are following posts :
1. Application Screenshots
2. Design Patterns: How to write reusable and tidy software? ( to be completed)
3. Menace of Global
Upendra Kumar added the comment:
For executing it currently, we need to run it like this:
python -m pip_tkinter
Recently, I have changed code. Therefore we can't execute individual
pages/layouts by running it with "python -m pip_tkinter.".
I will change the code in "__mai
Upendra Kumar added the comment:
I, actually want to make a 'configuration object' before running the 'pip' GUI.
Therefore one of the parameters of the configuration object will be to detect
the path to installed 'python.exe' in Windows. In order to get execut
Upendra Kumar added the comment:
I am unable to print anything using winreg module. Does it require
administrative privileges?
I am using this code sample :
import os
import errno
import winreg
proc_arch = os.environ['PROCESSOR_ARCHITECTURE'].lower()
try:
proc_arch64 =
Upendra Kumar added the comment:
@Terry and @Lorenzo,
As shown in the GUI of "install_pyPI_v1.png", I needed to add some tkinter
widget into treeview. For example, adding a checkbox to the treeview so that
multiple selections are possible. In figure "install_pyPI_v1.png",
Upendra Kumar added the comment:
Actually now we don't need
"pip list" command to get list of installed distributions.
We can directly get it :
from pip_tkinter._vendor import pkg_resources
installed_packages = [p.project_name for p in pkg_resour
Upendra Kumar added the comment:
@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&q
Changes by Upendra Kumar :
Added file: http://bugs.python.org/file42998/update_package_v1.png
___
Python tracker
<http://bugs.python.org/issue27051>
___
___
Python-bug
Changes by Upendra Kumar :
Added file: http://bugs.python.org/file42997/install_local_archive_v1.jpg
___
Python tracker
<http://bugs.python.org/issue27051>
___
___
Pytho
Changes by Upendra Kumar :
Added file: http://bugs.python.org/file42996/install_requirement_v1.jpg
___
Python tracker
<http://bugs.python.org/issue27051>
___
___
Pytho
Changes by Upendra Kumar :
Added file: http://bugs.python.org/file42995/install_pyPI_v1.png
___
Python tracker
<http://bugs.python.org/issue27051>
___
___
Python-bug
Changes by Upendra Kumar :
Added file: http://bugs.python.org/file42993/welcome_v1.jpg
___
Python tracker
<http://bugs.python.org/issue27051>
___
___
Python-bugs-list m
Changes by Upendra Kumar :
Added file: http://bugs.python.org/file42994/select_venv_system.jpg
___
Python tracker
<http://bugs.python.org/issue27051>
___
___
Python-bug
Upendra Kumar added the comment:
I am posting flow of logic for application and related page layouts.
Related layouts are :
1. welcome_v1
2. select_venv_system
3. install_pyPI_v1
4. install_local_archive_v1
5. install_pythonlibs_v1
6. install_requirements_v1
7. update_package_v1
8
Upendra Kumar added the comment:
3. Detecting Virtual Environment
Virtual environment can be detected using pip module :
from pip.locations import running_under_virtualenv
if running_under_virtualenv():
#If user provided path for virtual environment, evrything okay
else:
#Prompt
Upendra Kumar added the comment:
2. Detecting different versions of Python installed :
For Windows :
It is explained in PEP 514 by Steve Dower.
Windows has registry keys which can be accessed by winreg or _winreg module.
Priority of registry keys :
HKEY_CURRENT_USER > HKEY_LOCAL_MACH
Upendra Kumar added the comment:
These are some of the code parts which may be necessary :
1. Code for identification of OS
from sys import platform
if platform.startswith("linux"):
#linux
elif platform == "darwin":
#mac os x
else platform == &q
Upendra Kumar added the comment:
I have uploaded my first iteration of design process for Tkinter. In the
uploaded document "Design_notes_v1.docx", we have tried to identify different
use cases and tasks to be fulfilled by the PIP GUI.
If there are any suggestions regarding further
New submission from Upendra Kumar:
This is new issue opened for creating a GUI (tkinter) front end for pip. It is
in continuation with Issue #23551.
--
components: Tkinter
messages: 265810
nosy: terry.reedy, upendra-k14
priority: normal
severity: normal
status: open
title: Create PIP
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 (
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
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
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
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
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
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 non
Upendra Kumar added the comment:
Yeah, I slightly modified the functions from the bisect docs to suit for the
purpose here.
--
___
Python tracker
<http://bugs.python.org/issue26
Upendra Kumar added the comment:
Can someone please review my patch? I think it can increase the performance
significantly of the median_grouped() function. But, I don't have any standard
way of checking if it would improve or will be an overkill for the
median_grouped() fun
Upendra Kumar added the comment:
I am submitting a patch for this documentation issue. I have changed the
function parameters name 'traceback' to 'tb'. Because of this I have also
introduced changes in the text of the documentation to maintain coherency.
I found so
Upendra Kumar added the comment:
I have submitted the patch for this small typo.
--
keywords: +patch
nosy: +upendra-k14
Added file: http://bugs.python.org/file41528/typo.patch
___
Python tracker
<http://bugs.python.org/issue26
Upendra Kumar added the comment:
I am submitting the patch with small change suggested by you. Thank you.
--
keywords: +patch
nosy: +upendra-k14
Added file: http://bugs.python.org/file41524/building_additional.patch
___
Python tracker
<h
Upendra Kumar added the comment:
I also think that for better clarification, binary mode and text mode should be
specified clearly for both methods read() and write().
For read(), I have changed it to:
' some quantity of data and returns it as a string (in text mode) or bytes
objec
New submission from Upendra Kumar:
statistics.median_grouped currently uses cf=data.index(x) to find the leftmost
position of x in data ( line number 445 ). Here, data.index() has linear time
complexity, which may not be good for long lists.
But, here since the list 'data'
Upendra Kumar added the comment:
This method can also be further used to implement multiselect functionality
with slight changes in the nth-order function.
--
___
Python tracker
<http://bugs.python.org/issue21
Upendra Kumar added the comment:
This is my first attempt to contribute. I have used the Median of Medians with
n/5 groups of 5 elements each. It has linear time complexity. But, still I am
not sure about it, because constants may be high. Therefore, if anyone can
please benchmark it with
Upendra Kumar added the comment:
I am trying to resolve a issue for the first time. Can anybody please tell me
or elaborate what is "module level function" specifically in this context.
--
nosy: +upendra-k14
___
Python trac
48 matches
Mail list logo