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.

classification
Title: Windows installer configures system PATH also when installing only for current user
Type: Stage: resolved
Components: Installation Versions: Python 2.7
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: iritkatriel, pekka.klarck, steve.dower
Priority: normal Keywords:

Created on 2014-11-26 23:52 by pekka.klarck, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (4)
msg231734 - (view) Author: Pekka Klärck (pekka.klarck) Date: 2014-11-26 23:52
To reproduce:
1) Download and run Python 2.7.9rc1 Windows installer.
2) Select "Install just for me."
3) Enable "Add python.exe to Path."
=>
Expected: Current user PATH edited.
Actual: System PATH edited.
msg231739 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2014-11-27 00:34
The "just for me" option isn't actually a per-user install, it actually just restricts use of the core Python DLL to Python itself and not any other applications that may want to use it (by putting the DLL in the Python folder instead of the system folder). Basically everything else about this option is a bug that I consider it of scope for 2.7 at this point. If someone else figures out how to fix it, I can try and review the patch, but I'm not intending to figure out the install script well enough to fix it.

For what it's worth, the Python 3.5 installer will have a true per-user option (no admin privileges, no shared files with other users, per-user environment and file associations, etc.)
msg231906 - (view) Author: Pekka Klärck (pekka.klarck) Date: 2014-11-30 21:08
For me this isn't too high priority. I typically install Python for all users on Windows anyway, and recommend that also for my clients. I just tested this RC to see how (ensure)pip works in practice, decided to install only for the current user, was very happy to notice that there's an option to set PATH, and then decided to submit an issue when I noticed the system PATH was updated.

Because setting PATH is opt-in, and because 2.7 installer apparently requires admin rights and thus always can updated system PATH, I doubt this problem is going to actually matter to anyone. Great to hear 3.5 will have real "only for me" option.
msg393270 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-05-08 17:39
Irrelevant since version 3.5.
History
Date User Action Args
2022-04-11 14:58:10adminsetgithub: 67142
2021-05-08 17:39:15iritkatrielsetstatus: open -> closed

nosy: + iritkatriel
messages: + msg393270

resolution: out of date
stage: resolved
2014-11-30 21:08:54pekka.klarcksetmessages: + msg231906
2014-11-27 00:34:40steve.dowersetmessages: + msg231739
2014-11-27 00:05:00berker.peksagsetnosy: + steve.dower
2014-11-26 23:52:14pekka.klarckcreate