Adapting for older versions of setuptools