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: Add a note to the macOS installer welcome window about customize options
Type: Stage: resolved
Components: Installation, macOS Versions: Python 3.10, Python 3.9
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: ned.deily Nosy List: barry-scott, ned.deily, ronaldoussoren
Priority: normal Keywords:

Created on 2021-02-08 19:48 by barry-scott, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (6)
msg386647 - (view) Author: Barry Alan Scott (barry-scott) * Date: 2021-02-08 19:48
By default the python macOS installer will edit .bash_profile and .zsh_profile to add Python to the path.

For many users this is a problem that requires the added lines to be
removed after each install.

I suggest that there is a mechanism that the user can use to tell the
installer to leave the files as is.

Once option could be to add a marker in the profile files that when present turns off the editing.

For example a comment like:

# python: no-path-edit

Another possiblity is for the user to create a marker file that is checked for:

touch ~/Library/Preferences/org.python.no-path.edit

Any reasonable mechinism would be a great help.
msg386650 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2021-02-08 20:03
There already is a mechanism to do that: on the "Installation Type" window of the macOS installer app sequeence, select "Customize" and then deselect the "Shell profile update" package. Another option is to use the macOS "installer" command line tool instead and supply it with a choice changes file that deselects the package.
msg386653 - (view) Author: Barry Alan Scott (barry-scott) * Date: 2021-02-08 20:15
It was not obvious that I could do that with Customise.

Indeed I installed 3.10a5 just so that I could remind myself of what the installer did.

It would help is the Installation type page told the user why they might want to use the Customise for.
msg386654 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2021-02-08 20:21
I'm not sure that the text on the "Installation Type" window can be customized but we could add something to either the "Introduction" or "Read Me" windows.
msg386656 - (view) Author: Barry Alan Scott (barry-scott) * Date: 2021-02-08 20:27
The readme page is a good 2nd best is PKG install has not option to control the text on the INstallation type page.

My guess is that the info would need be in visible without
scrolling for people to notice it. (UX is hard).
msg394156 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2021-05-21 21:11
As of the 3.9.5 and 3.10.0b1 macOS installers, the following text is displayed during installation near the top of the "Read Me" window:

Install Options
---------------

You can control some aspects of what is installed by this package. To see the options, click on the Customize button in the Installation Type step of the macOS installer app.  Click on a package name in the list shown to see more information about that option,
History
Date User Action Args
2022-04-11 14:59:41adminsetgithub: 87333
2021-05-21 21:11:43ned.deilysetstatus: open -> closed
resolution: fixed
messages: + msg394156

stage: needs patch -> resolved
2021-02-08 20:27:34barry-scottsetmessages: + msg386656
2021-02-08 20:25:10ned.deilysetassignee: ned.deily
title: macOS python install need mechanism to prevent editing shell profile files -> Add a note to the macOS installer welcome window about customize options
stage: needs patch
2021-02-08 20:21:23ned.deilysetmessages: + msg386654
2021-02-08 20:15:24barry-scottsetmessages: + msg386653
2021-02-08 20:04:56ned.deilysetnosy: + ronaldoussoren
components: + macOS
2021-02-08 20:03:41ned.deilysetnosy: + ned.deily
messages: + msg386650
2021-02-08 19:48:49barry-scottcreate