> On 2 Feb 2017, at 15:43, Barry Scott <ba...@barrys-emacs.org > <mailto:ba...@barrys-emacs.org>> wrote: > >> >> On 31 Jan 2017, at 21:19, Barry Scott <ba...@barrys-emacs.org >> <mailto:ba...@barrys-emacs.org>> wrote: >> >> >>> On 31 Jan 2017, at 21:08, Ronald Oussoren <ronaldousso...@mac.com >>> <mailto:ronaldousso...@mac.com>> wrote: >>> >>> >>>> On 28 Jan 2017, at 17:42, Barry Scott <ba...@barrys-emacs.org >>>> <mailto:ba...@barrys-emacs.org>> wrote: >>>> >>>> Is it possible to prevent the editing of the shell profile when I install >>>> a python kit? >>>> >>>> I keep having to delete the, unnecessary for me, PATH editing. >>> >>> The installer has an option for not updating the shell profile: after the >>> “select a destination” screen you can choose “customize”, on that screen >>> unselect “shell profile updater”. >> >> O.k. I will use that when I update again. > > Given that /usr/local/bin is on the PATH (as it is in /etc/paths) and the > installer links python pip etc into /usr/local/bin > why does it need to edit my .bash_profile at all with the long > /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 > paths. > > Is this a hang over from older macOS versions?
I’m not 100% sure, /usr/local may not have been in the default PATH in the past and if it were it would have been after /usr/bin which is problematic when trying to use a Python.org <http://python.org/> install of the same python version as is included in macOS. A more important reason is that when you install additional software into the global installation any scripts will get installed in the directory /Library/Frameworks/…/bin and not in /usr/local. It could have been possible to coax distutils to install scripts into /usr/local, but then you run into problems when running multiple python versions. I generally install with neither updating the shell profile nor installing links in /usr/local, that keeps the global system clean (and I have some custom shell profile code to keep python frameworks on PATH in the order I like). Ronald
_______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org https://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG