factor out the sdist stuffs