old_contents: from setuptools import setup, Extension
  from setuptools.command.build_ext import build_ext
  import os.path
  import subprocess
  import sys
  
  
  class PSqlParseBuildExt(build_ext):
  
      def run(self):
          return_code = subprocess.call(['./build_libpg_query.sh'])
          if return_code:
              sys.stderr.write('''
  An error occurred during extension building.
  Make sure you have bison and flex installed on your system.
  ''')
              sys.exit(return_code)
          build_ext.run(self)
  
  
  USE_CYTHON = bool(os.environ.get('USE_CYTHON'))
  
  ext = '.pyx' if USE_CYTHON else '.c'
  
  libpg_query = os.path.join('.', 'libpg_query-9.5-latest')
  
  libraries = ['pg_query']
  
  extensions = [
      Extension('psqlparse.parser',
                ['psqlparse/parser' + ext],
                libraries=libraries,
                include_dirs=[libpg_query],
                library_dirs=[libpg_query])
  ]
  
  if USE_CYTHON:
      from Cython.Build import cythonize
      extensions = cythonize(extensions)
  
  setup(name='psqlparse',
        version='1.0-rc5',
        url='https://github.com/alculquicondor/psqlparse',
        author='Aldo Culquicondor',
        author_email='aldo@amigocloud.com',
        description='Parse SQL queries using the PostgreSQL query parser',
        install_requires=['six'],
        license='BSD',
        cmdclass={'build_ext': PSqlParseBuildExt},
        packages=['psqlparse', 'psqlparse.nodes'],
        ext_modules=extensions)
  
new_contents: from setuptools import setup, Extension
  from setuptools.command.build_ext import build_ext
  import os.path
  import subprocess
  import sys
  
  
  class PSqlParseBuildExt(build_ext):
  
      def run(self):
          return_code = subprocess.call(['./build_libpg_query.sh'])
          if return_code:
              sys.stderr.write('''
  An error occurred during extension building.
  Make sure you have bison and flex installed on your system.
  ''')
              sys.exit(return_code)
          build_ext.run(self)
  
  
  USE_CYTHON = bool(os.environ.get('USE_CYTHON'))
  
  ext = '.pyx' if USE_CYTHON else '.c'
  
  libpg_query = os.path.join('.', 'libpg_query-9.5-latest')
  
  libraries = ['pg_query']
  
  extensions = [
      Extension('psqlparse.parser',
                ['psqlparse/parser' + ext],
                libraries=libraries,
                include_dirs=[libpg_query],
                library_dirs=[libpg_query])
  ]
  
  if USE_CYTHON:
      from Cython.Build import cythonize
      extensions = cythonize(extensions)
  
  setup(name='psqlparse',
        version='1.0-rc6',
        url='https://github.com/alculquicondor/psqlparse',
        author='Aldo Culquicondor',
        author_email='aldo@amigocloud.com',
        description='Parse SQL queries using the PostgreSQL query parser',
        install_requires=['six'],
        license='BSD',
        cmdclass={'build_ext': PSqlParseBuildExt},
        packages=['psqlparse', 'psqlparse.nodes'],
        ext_modules=extensions)
  
subject: Bump version to 1.0-rc6