Dima Tisnek <dim...@gmail.com> added the comment:
I've figured out what's going on: When Installer runs, it asks for user's su passwords, does a bunch of stuff, and then starts "Running package scripts". While it's "running scripts", towards the end of that process, with "about one minute remaining", the Finder window pops up. If "Install Certificates.command" is activated at that time, pip fails. However, if user waits for "running scripts" to complete, the pip succeeds. The "race" window is less than half a minute. Below are the examples of site packages listing during the race window: ``` Tue Mar 19 14:20:50 JST 2019 total 8.0K drwxr-xr-x 28 root admin 896 Mar 19 14:20 setuptools/ drwxrwxr-x 7 root admin 224 Mar 19 14:20 ./ drwxr-xr-x 10 root admin 320 Mar 19 14:20 setuptools-40.8.0.dist-info/ drwxr-xr-x 3 root admin 96 Mar 19 14:20 __pycache__/ -rw-r--r-- 1 root admin 126 Mar 19 14:20 easy_install.py drwxrwxr-x 208 root admin 6.5K Mar 13 05:13 ../ -rw-rw-r-- 1 root admin 119 Mar 13 05:13 README.txt Tue Mar 19 14:20:51 JST 2019 total 8.0K drwxr-xr-x 11 root admin 352 Mar 19 14:20 setuptools-40.8.0.dist-info/ drwxr-xr-x 7 root admin 224 Mar 19 14:20 pkg_resources/ drwxrwxr-x 8 root admin 256 Mar 19 14:20 ./ drwxr-xr-x 42 root admin 1.4K Mar 19 14:20 setuptools/ drwxr-xr-x 3 root admin 96 Mar 19 14:20 __pycache__/ -rw-r--r-- 1 root admin 126 Mar 19 14:20 easy_install.py drwxrwxr-x 208 root admin 6.5K Mar 13 05:13 ../ -rw-rw-r-- 1 root admin 119 Mar 13 05:13 README.txt Tue Mar 19 14:20:52 JST 2019 total 8.0K drwxr-xr-x 6 root admin 192 Mar 19 14:20 pip/ drwxrwxr-x 9 root admin 288 Mar 19 14:20 ./ drwxr-xr-x 11 root admin 352 Mar 19 14:20 setuptools-40.8.0.dist-info/ drwxr-xr-x 7 root admin 224 Mar 19 14:20 pkg_resources/ drwxr-xr-x 42 root admin 1.4K Mar 19 14:20 setuptools/ drwxr-xr-x 3 root admin 96 Mar 19 14:20 __pycache__/ -rw-r--r-- 1 root admin 126 Mar 19 14:20 easy_install.py drwxrwxr-x 208 root admin 6.5K Mar 13 05:13 ../ -rw-rw-r-- 1 root admin 119 Mar 13 05:13 README.txt Tue Mar 19 14:20:53 JST 2019 total 8.0K drwxr-xr-x 3 root admin 96 Mar 19 14:20 __pycache__/ drwxr-xr-x 9 root admin 288 Mar 19 14:20 pip-19.0.3.dist-info/ drwxrwxr-x 10 root admin 320 Mar 19 14:20 ./ drwxr-xr-x 7 root admin 224 Mar 19 14:20 pip/ drwxr-xr-x 11 root admin 352 Mar 19 14:20 setuptools-40.8.0.dist-info/ drwxr-xr-x 7 root admin 224 Mar 19 14:20 pkg_resources/ drwxr-xr-x 42 root admin 1.4K Mar 19 14:20 setuptools/ -rw-r--r-- 1 root admin 126 Mar 19 14:20 easy_install.py drwxrwxr-x 208 root admin 6.5K Mar 13 05:13 ../ -rw-rw-r-- 1 root admin 119 Mar 13 05:13 README.txt ``` I suspect that this is not a big deal in practice, because a new user would not know to run the command until instructed in the "installation completed" screen. Meanwhile, "experienced / trigger-happy" users probably know to run the command again :) P.S. I'm also wondering if it matters that installer asks for current user's su password and after a good installation, most content of site-packages is owned by root:admin, while certifi is owned by current user... For example `__pycache__` not being writable by user. ---------- Added file: https://bugs.python.org/file48218/Screenshot 2019-03-19 at 14.08.31.png _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36340> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com