import os
from distutils.core import setup

setup(
    name = "django-piston",
    version = "0.2",
    url = 'http://bitbucket.org/jespern/django-piston/wiki/Home',
	download_url = 'http://bitbucket.org/jespern/django-piston/downloads/',
    license = 'BSD',
    description = "Piston is a Django mini-framework creating APIs.",
    author = 'Jesper Noehr',
    author_email = 'jesper@noehr.org',
    packages = ['piston'],
    classifiers = [
        'Development Status :: 3 - Alpha',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Internet :: WWW/HTTP',
    ]
)

@@ -1,46 +1,236 @@
-import os%0Afrom distutils.core import setup
+#!/usr/bin/env python%0A# -*- coding: utf-8 -*-%0A%0Atry:%0A    from setuptools import setup, find_packages%0Aexcept ImportError:%0A    import ez_setup%0A    ez_setup.use_setuptools()%0A    from setuptools import setup, find_packages%0A    %0Aimport os
 %0A%0Ase
@@ -600,18 +600,56 @@
 s = 
-%5B'piston'%5D
+find_packages(),%0A    include_package_data = True
 ,%0A  

replace distutils by setuptools