astropy/astropy — pull request #158 by mdboom (2012-02-10 16:58:12+00:00)
Title: Fix setup.py sdist

Fixes the sdist command so it produces a reasonable tarball, which includes generated Cython *.c files if any.

- The sdist command in setuptools/distribute is annoying because it doesn't respect package_data -- that information has to be duplicated in MANIFEST.in. It appears to work well enough to just use the distutils one instead, which on Python 2.7 and later respects package_data.

- sdist requires that all paths are relative to the source root -- some of the code that was generating C extensions was using absolute paths.