text: #!/usr/bin/env python
  
  from setuptools import setup, find_packages
  from distutils.core import Extension
  import sys
  if sys.version_info[0] < 3:
      avro = 'avro'
  else:
      avro = 'avro-python3'
  
  module = Extension('confluent_kafka.cimpl',
                     libraries=['rdkafka'],
                     sources=['confluent_kafka/src/confluent_kafka.c',
                              'confluent_kafka/src/Producer.c',
                              'confluent_kafka/src/Consumer.c'])
  
  setup(name='confluent-kafka',
        version='0.11.4',
        description='Confluent\'s Apache Kafka client for Python',
        author='Confluent Inc',
        author_email='support@confluent.io',
        url='https://github.com/confluentinc/confluent-kafka-python',
        ext_modules=[module],
        packages=find_packages(exclude=("tests",)),
        data_files=[('', ['LICENSE.txt'])],
        extras_require={
            'avro': ['fastavro', 'requests', avro]
        })
  