Revert "No need to define BASEDIR in setup"

This reverts commit a6f83aa36358fa94e1455a2a799071b0f369d512.