from distutils.core import setup
import os

# Compile the list of packages available, because distutils doesn't have
# an easy way to do this.
packages, data_files = [], []
root_dir = os.path.dirname(__file__)
if root_dir:
    os.chdir(root_dir)

# snippet from http://django-registration.googlecode.com/svn/trunk/setup.py
for dirpath, dirnames, filenames in os.walk('compress'):
    # Ignore dirnames that start with '.'
    for i, dirname in enumerate(dirnames):
        if dirname.startswith('.'): del dirnames[i]
    if '__init__.py' in filenames:
        pkg = dirpath.replace(os.path.sep, '.')
        if os.path.altsep:
            pkg = pkg.replace(os.path.altsep, '.')
        packages.append(pkg)
    elif filenames:
        prefix = dirpath[9:] # Strip "registration/" or "registration\"
        for f in filenames:
            data_files.append(os.path.join(prefix, f))

setup(
    name='django-compress',
    version='1.0.1',
    description='django-compress provides an automated system for compressing CSS and JavaScript files',
    author='Andreas Pelme',
    author_email='Andreas Pelme <andreas@pelme.se>',
    url='http://code.google.com/p/django-compress/',
    packages = packages,
    package_data = {'compress': data_files,},
    classifiers=[
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Utilities',
    ]
)

@@ -1,885 +1,57 @@
-from distutils.core import setup%0Aimport 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%0A# snippet from http://django-registration.googlecode.com/svn/trunk/setup.py%0Afor dirpath, dirnames, filenames in os.walk('compress'):%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%5B9:%5D # Strip %22registration/%22 or %22registration%5C%22%0A        for f in filenames:%0A            data_files.append(os.path.join(prefix, f))
+import os%0Afrom setuptools import setup, find_packages
 %0A%0Ase
@@ -101,16 +101,24 @@
 n='1.0.1
+-disqus1
 ',%0A    d
@@ -367,19 +367,22 @@
 ages
- = 
+=find_
 packages
 ,%0A  
@@ -381,54 +381,61 @@
 ages
+()
 ,%0A    
-package_data = %7B'compress': data_files,%7D
+zip_safe=False,%0A    include_package_data=True
 ,%0A  

Switch to setuptools and enforce zip_safe=False