support the new setuptools

changes to support the new setuptools and have the tests pass.