import distutils.command.build
from distutils.dist import Distribution
b = distutils.command.build.build(Distribution())
b.initialize_options()
b.finalize_options()
print(b.build_temp)
print(b.build_lib)
b.build_purelib
b.build_platlib
b.build_scripts
b.build_base
Using Sphinx with a distutils-built C extension