old_contents: #!/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',
      ],
  )
  
new_contents: #!/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',
      ],
  )
  
subject: Install wagtail only if needed.