#!/usr/bin/env python
"""
Install wagtailsettings using setuptools
"""

from wagtailsettings import __version__

with open('README.rst', 'r') as f:
    readme = f.read()

try:
    from setuptools import setup, find_packages
except ImportError:
    from ez_setup import use_setuptools
    use_setuptools()
    from setuptools import setup, find_packages

setup(
    name='wagtailsettings',
    version=__version__,
    description='Admin-editable settings for Wagtail projects',
    long_description=readme,
    author='Tim Heap',
    author_email='tim@takeflight.com.au',
    url='https://bitbucket.org/takeflight/wagtailsettings',

    install_requires=['wagtail>=0.6'],
    zip_safe=False,
    license='BSD License',

    packages=find_packages(),

    include_package_data=True,
    package_data={ },

    classifiers=[
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Framework :: Django',
        'License :: OSI Approved :: BSD License',
    ],
)

#!/usr/bin/env python
"""
Install wagtailsettings using setuptools
"""

from wagtailsettings import __version__

with open('README.rst', 'r') as f:
    readme = f.read()

try:
    from setuptools import setup, find_packages
except ImportError:
    from ez_setup import use_setuptools
    use_setuptools()
    from setuptools import setup, find_packages

setup(
    name='wagtailsettings',
    version=__version__,
    description='Admin-editable settings for Wagtail projects',
    long_description=readme,
    author='Tim Heap',
    author_email='tim@takeflight.com.au',
    url='https://bitbucket.org/takeflight/wagtailsettings',

    install_requires=[],
    extras_require={
        'full': ['wagtail>=0.6'],
    },
    zip_safe=False,
    license='BSD License',

    packages=find_packages(),

    include_package_data=True,
    package_data={ },

    classifiers=[
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Framework :: Django',
        'License :: OSI Approved :: BSD License',
    ],
)

Install wagtail only if needed.
Install wagtail only if needed.

In my case, I'm using not yet released to pypi wagtail, from master branch, and this setup script tries to install old wagtail and old django.