Revert "Remove unused setup.py hack"

This reverts commit f898d40d41758028610b085941c16d4754a91daf.