I've been reading the python document "Distributing python modules", and found this function document in sysconfig module:
This function is even more special-purpose, and should only be used from Python’s own build procedures. distutils.sysconfig.set_python_build()<#distutils.sysconfig.set_python_build>Inform the distutils.sysconfig module that it is being used as part of the build process for Python. This changes a lot of relative locations for files, allowing them to be located in the build area rather than in an installed Python. Where is this function? I cannot find it in distutils/sysconfig.py. Thanks. -- Ray Allen Best wishes!
-- http://mail.python.org/mailman/listinfo/python-list