Inside the setup.py script I need to create some temporary files for the installation. The natural place to put them would be the "build/" directory.

Is there a way to retrieve its path that works if installing via pypi, from source, easy_install, pip, ...?

Thanks a lot!

Edit
Report