old_contents: #!/usr/bin/env python
  
  import os
  from setuptools import setup, find_packages
  from setuptools.dist import Distribution
  import pkg_resources
  
  
  add_django_dependency = True
  # See feinCMS issues #50, #57 and #58 for why this is necessary
  try:
      pkg_resources.get_distribution('Django')
      add_django_dependency = False
  except pkg_resources.DistributionNotFound:
      try:
          import django
          if django.VERSION[0] >= 1 and django.VERSION[1] >= 3 and django.VERSION[2] >= 0:
              add_django_dependency = False
      except ImportError:
          pass
  
  Distribution({
      "setup_requires": add_django_dependency and  ['Django >=1.3.0'] or []
  })
  
  import plata
  
  setup(name='Plata',
      version=plata.__version__,
      description='Plata - the lean and mean Django-based Shop',
      long_description=open(os.path.join(os.path.dirname(__file__), 'README.rst')).read(),
      author='Matthias Kestenholz',
      author_email='mk@feinheit.ch',
      url='https://github.com/matthiask/plata/',
      license='BSD License',
      platforms=['OS Independent'],
      classifiers=[
          'Development Status :: 3 - Alpha',
          'Environment :: Web Environment',
          'Framework :: Django',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: BSD License',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
          'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
          'Topic :: Software Development',
          'Topic :: Software Development :: Libraries :: Application Frameworks',
      ],
      install_requires=[
          #'Django >=1.3.0' # See http://github.com/feincms/feincms/issues/closed#issue/50
      ],
      requires=[
      ],
      packages=[
          'plata',
          'plata.contact',
          'plata.discount',
          'plata.payment',
          'plata.payment.modules',
          'plata.product',
          'plata.product.feincms',
          'plata.product.modules.options',
          'plata.product.modules.options.templatetags',
          'plata.product.producer',
          'plata.product.stock',
          'plata.reporting',
          'plata.shop',
          'plata.shop.management',
          'plata.shop.management.commands',
          'plata.shop.templatetags',
      ],
      include_package_data=True,
      zip_safe=False,
  )
  
  
new_contents: #!/usr/bin/env python
  
  import os
  from setuptools import setup, find_packages
  
  import plata
  
  setup(name='Plata',
      version=plata.__version__,
      description='Plata - the lean and mean Django-based Shop',
      long_description=open(os.path.join(os.path.dirname(__file__), 'README.rst')).read(),
      author='Matthias Kestenholz',
      author_email='mk@feinheit.ch',
      url='https://github.com/matthiask/plata/',
      license='BSD License',
      platforms=['OS Independent'],
      classifiers=[
          'Development Status :: 3 - Alpha',
          'Environment :: Web Environment',
          'Framework :: Django',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: BSD License',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
          'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
          'Topic :: Software Development',
          'Topic :: Software Development :: Libraries :: Application Frameworks',
      ],
      packages=find_packages(),
      include_package_data=True,
      zip_safe=False,
  )
  
subject: Stop making it more complicated than necessary