This was on my TODO list for a long time and doing this allows the setup.py module code to be re-used in slang.py