[issue24757] Installing Py on Windows: Need to restart or logout for path to be added

2020-09-24 Thread Forrest Shields


Forrest Shields  added the comment:

As of 3.8.5 the current shell's PATH is outdated after a commandline 
system-wide installation.  This makes it very difficult to do a scripted 
install of Python followed by the `python` or `pip` commands, as they will not 
be found. In addition to modifying the PATH in the system scope, the PATH 
should also be modified for the current process (shell).

Here is the WORKAROUND I created and am currently using:

1. Perform the commandline system-wide installation from an Administrative 
PowerShell prompt.
2. After the installation (but before using `python` or `pip`) rebuild the PATH 
environment variable for the current process from the concatenation of the PATH 
environment variables from the System and User scopes (this is how Windows 
builds the PATH) by using this code:
```
[Environment]::SetEnvironmentVariable('PATH', 
[Environment]::GetEnvironmentVariable('PATH', 'Machine') + ';' + 
[Environment]::GetEnvironmentVariable('PATH', 'User'), 'Process')
```

--
components: +Installation
nosy: +forrestshields2
versions: +Python 3.8

___
Python tracker 
<https://bugs.python.org/issue24757>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41853] Windows docs for command line install don't mention /log option

2020-09-24 Thread Forrest Shields


New submission from Forrest Shields :

Section "3.1.3. Installing Without UI" of the Windows documentation at 
https://docs.python.org/3/using/windows.html#installing-without-ui does not 
mention the existence of the `/log` option.

However, this option is detailed when the Windows installer is executed with a 
`/?` argument. (see attached image).

The documentation (for all versions that contained the logging option) should 
be updated.

The help dialog also defines the `/simple` option. This appears to overlap with 
a "name=value" option called SimpleInstall. If both options are still active, 
then the docs should also mention `/simple`.  If this option is deprecated in 
favor of the "name=value" version, then the help dialog needs to be updated.

Finally, I think the docs would be much more readable if the slash options were 
in a table similar to the "name=value" options.

--
assignee: docs@python
components: Documentation, Windows
files: Python-3.8.5-for-WIndows--Setup-Help.png
messages: 377452
nosy: docs@python, forrestshields2, paul.moore, steve.dower, tim.golden, 
zach.ware
priority: normal
severity: normal
status: open
title: Windows docs for command line install don't mention /log option
type: enhancement
versions: Python 3.10, Python 3.8, Python 3.9
Added file: 
https://bugs.python.org/file49473/Python-3.8.5-for-WIndows--Setup-Help.png

___
Python tracker 
<https://bugs.python.org/issue41853>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com