New distance function. Now uses setuptools.