I’m having troubles with installing packages in Python 3. I have always installed packages with setup.py install. But now, when I try to install the ansicolors package I get: I have no idea what to do because I didn’t have setuptools installed in the past. Still, I was able to install many packages with setup.py install without setuptools. Why should
Tag: setup.py
Reliable way to get the “build” directory from within setup.py
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! Answer By default distutils create build/ in current working dir, but it can