import - Python's 'site.py' gone after Yosemite upgrade. Is that okay? -



import - Python's 'site.py' gone after Yosemite upgrade. Is that okay? -

the yosemite (os x 10.10) upgrade includes python 2.7.6, , process, usual apple scheme updates, seems replace scheme packages directory, in

/system/library/frameworks/python.framework/versions/2.7/extras/lib/python

this time, process appears have exclusively omitted site.py. understanding this file essential functioning of python, in particular, proper construction of bundle search paths; python (which uses nil more apple scheme python , additional packages in site-packages) works fine, , my paths remain before upgrade.

is site.py no longer needed proper functioning of python? has been moved location?

site.py still used. not looking in right location:

>>> import site >>> print site.__file__ /system/library/frameworks/python.framework/versions/2.7/lib/python2.7/site.pyc

the /extras construction appears consist exclusively of non-standard-library packages, e.g. packages apple installs own uses not included standard python.

if there was site.py file there in previous os x versions in likelihood one installed setuptools; 10.10 comes setuptools 1.1.6, has long since got rid of hack embodied in file.

python import pythonpath osx-yosemite

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -