site.py is still in use. You just donβt look at the right place:
>>> import site >>> print site.__file__ /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.pyc
The /Extras framework seems to be entirely composed of non-standard library packages, for example. packages that Apple installs for its own purposes, which are not part of standard Python.
If there was a site.py file in previous versions of OS X, it was most likely one installed by setuptools ; from 10.10 comes setuptools 1.1.6, which has long since gotten rid of the hack embodied in this file.
source share