allow pip to install mac wheels from pypi

sames as #1277 but with updates to docs and comments, and little bit of restructure in the surrounding code block.