from distutils.core import setup

setup(name='registration',
      version='0.3p4',
      description='User-registration application for Django',
      author='James Bennett',
      author_email='james@b-list.org',
      url='http://code.google.com/p/django-registration/',
      packages=['registration'],
      classifiers=['Development Status :: 4 - Beta',
                   'Environment :: Web Environment',
                   'Intended Audience :: Developers',
                   'License :: OSI Approved :: BSD License',
                   'Operating System :: OS Independent',
                   'Programming Language :: Python',
                   'Topic :: Utilities'],
      )

@@ -26,16 +26,795 @@
 t setup%0A
+import os%0A%0A# Compile the list of packages available, because distutils doesn't have%0A# an easy way to do this.%0Apackages, data_files = %5B%5D, %5B%5D%0Aroot_dir = os.path.dirname(__file__)%0Aif root_dir:%0A    os.chdir(root_dir)%0A%0Afor dirpath, dirnames, filenames in os.walk('registration'):%0A    # Ignore dirnames that start with '.'%0A    for i, dirname in enumerate(dirnames):%0A        if dirname.startswith('.'): del dirnames%5Bi%5D%0A    if '__init__.py' in filenames:%0A        pkg = dirpath.replace(os.path.sep, '.')%0A        if os.path.altsep:%0A            pkg = pkg.replace(os.path.altsep, '.')%0A        packages.append(pkg)%0A    elif filenames:%0A        prefix = dirpath%5B13:%5D # Strip %22registration/%22 or %22registration%5C%22%0A        for f in filenames:%0A            data_files.append(os.path.join(prefix, f))%0A%0A
 %0Asetup(n
@@ -1059,19 +1059,100 @@
  package
-s=%5B
+_dir=%7B'registration': 'registration'%7D,%0A      packages=packages,%0A      package_data=%7B
 'registr
@@ -1157,17 +1157,29 @@
 tration'
-%5D
+: data_files%7D
 ,%0A      

Add improved setup.py, courtesy of Raphael Hertzog