old_contents: #!/usr/bin/env python
  """
  Installation script:
  
  To release a new version to PyPi:
  - Ensure the version is correctly set in oscar.__init__.py
  - Run: python setup.py sdist upload
  """
  
  from setuptools import setup, find_packages
  import os
  
  from oscar import get_version
  
  PROJECT_DIR = os.path.dirname(__file__)
  
  # Change to the current directory to solve an issue installing Oscar on the Vagrant machine.
  os.chdir(PROJECT_DIR)
  
  setup(name='django-oscar',
        version=get_version().replace(' ', '-'),
        url='https://github.com/tangentlabs/django-oscar',
        author="David Winterbottom",
        author_email="david.winterbottom@tangentlabs.co.uk",
        description="A domain-driven e-commerce framework for Django 1.3+",
        long_description=open(os.path.join(PROJECT_DIR, 'README.rst')).read(),
        keywords="E-commerce, Django, domain-driven",
        license='BSD',
        platforms=['linux'],
        packages=find_packages(exclude=["sandbox*", "tests*"]),
        include_package_data=True,
        install_requires=[
            'django>=1.4',
            'PIL==1.1.7',
            'South>=0.7.6',
            'django-extra-views>=0.2.0,<0.3',
            'django-haystack==2.0.0-beta',
            'django-treebeard==1.61',
            'sorl-thumbnail==11.12',
            'python-memcached==1.48',
            'django-sorting==0.1',
            'Babel==0.9.6',
            ],
        dependency_links=['http://github.com/toastdriven/django-haystack/tarball/master#egg=django-haystack-2.0.0-beta'],
        # See http://pypi.python.org/pypi?%3Aaction=list_classifiers
        classifiers=['Environment :: Web Environment',
                     'Framework :: Django',
                     'Intended Audience :: Developers',
                     'License :: OSI Approved :: BSD License',
                     'Operating System :: Unix',
                     'Programming Language :: Python']
        )
  
new_contents: #!/usr/bin/env python
  """
  Installation script:
  
  To release a new version to PyPi:
  - Ensure the version is correctly set in oscar.__init__.py
  - Run: python setup.py sdist upload
  """
  
  from setuptools import setup, find_packages
  import os
  
  from oscar import get_version
  
  PROJECT_DIR = os.path.dirname(__file__)
  
  # Change to the current directory to solve an issue installing Oscar on the Vagrant machine.
  if PROJECT_DIR:
      os.chdir(PROJECT_DIR)
  
  setup(name='django-oscar',
        version=get_version().replace(' ', '-'),
        url='https://github.com/tangentlabs/django-oscar',
        author="David Winterbottom",
        author_email="david.winterbottom@tangentlabs.co.uk",
        description="A domain-driven e-commerce framework for Django 1.3+",
        long_description=open(os.path.join(PROJECT_DIR, 'README.rst')).read(),
        keywords="E-commerce, Django, domain-driven",
        license='BSD',
        platforms=['linux'],
        packages=find_packages(exclude=["sandbox*", "tests*"]),
        include_package_data=True,
        install_requires=[
            'django>=1.4',
            'PIL==1.1.7',
            'South>=0.7.6',
            'django-extra-views>=0.2.0,<0.3',
            'django-haystack==2.0.0-beta',
            'django-treebeard==1.61',
            'sorl-thumbnail==11.12',
            'python-memcached==1.48',
            'django-sorting==0.1',
            'Babel==0.9.6',
            ],
        dependency_links=['http://github.com/toastdriven/django-haystack/tarball/master#egg=django-haystack-2.0.0-beta'],
        # See http://pypi.python.org/pypi?%3Aaction=list_classifiers
        classifiers=['Environment :: Web Environment',
                     'Framework :: Django',
                     'Intended Audience :: Developers',
                     'License :: OSI Approved :: BSD License',
                     'Operating System :: Unix',
                     'Programming Language :: Python']
        )
  
subject: Fix directory change issue in setup.py