You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve display names of interpreters in the list and status bar #1351
The name of the company (on Windows this is retrieved from the registry PEP 514)
DisplayName is
On Windows, this should be retrieved from the registry PEP 514
Python Major.Minor.Micro 32/64bit (for all but conda environments and non Windows OS)
E.g. Python 2.7.14 32bitPython 3.5.1 64bit
EnvironmentType: is one of the following
pipenv
pyenv
venv
virtualenv
Note: conda is not included in the above list, as the company name (prefix) would be an implicit indicator of the fact that its a conda environment.
Added needs decision, as Dan Taylor (@qubitron) is working on the display format.
I'm currently working on laying the foundation work to make the above possible (i.e. ensure we have all necessary bits of information to build the display value).
What are the parts of (v03 venv)? Is that directory name and type? Should we separate those out more clearly as that will get confusing when the directory has a space, e.g. (some bunk venv)?
And do we want x86/x64 instead of 32-bit/64-bit for any reason other than it's shorter? 😉
Activity
DonJayamanne commentedon Apr 28, 2018
The following is a WIP:
Requirements:
TBD:
sys.maxsize)Propose Format
CompanyName DisplayName (EnvironmentName EnvironmentType)Propose Sort order
Environment + display nameE.g.:
Where:
CompanyNameisDisplayNameisPython Major.Minor.Micro 32/64bit(for all but conda environments and non Windows OS)E.g.
Python 2.7.14 32bitPython 3.5.1 64bitEnvironmentType: is one of the followingNote:
condais not included in the above list, as the company name (prefix) would be an implicit indicator of the fact that its acondaenvironment.[-]Improve display names of interpreters[/-][+]Improve display names of interpreters in the list and status bar[/+]DonJayamanne commentedon May 2, 2018
Added
needs decision, as Dan Taylor (@qubitron) is working on thedisplay format.I'm currently working on laying the foundation work to make the above possible (i.e. ensure we have all necessary bits of information to build the
displayvalue).DonJayamanne commentedon May 4, 2018
Agreed display is as follows:
Sort order =
Version numberbrettcannon commentedon May 7, 2018
What are the parts of
(v03 venv)? Is that directory name and type? Should we separate those out more clearly as that will get confusing when the directory has a space, e.g.(some bunk venv)?And do we want
x86/x64instead of32-bit/64-bitfor any reason other than it's shorter? 😉DonJayamanne commentedon May 7, 2018
v03 - environment name
venv - tool used to create environment (or environment type).
Agreed. How about using double quotes when necessary?
Good idea. I went with the later as that's what is returned by python (when using
--version).brettcannon commentedon May 7, 2018
Maybe
("some bunk" / venv)?("some bunk": venv)?24 remaining items
Get pyenv root directory from central location (#2619)
ericsnowcurrently commentedon Sep 19, 2018
Things look good now. "System" interpreters are shown correctly and pyenv showed up right.
d3r3kk commentedon Sep 19, 2018
(Tested as well, looks great)
qubitron commentedon Sep 19, 2018
Looks good with the following changes:
Minor UI changes to the display names of the interpreters (#2643)