forked from confluentinc/confluent-kafka-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·28 lines (25 loc) · 932 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/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.0',
description='Confluent\'s Apache Kafka client for Python',
author='Confluent Inc',
author_email='[email protected]',
url='https://github.com/confluentinc/confluent-kafka-python',
ext_modules=[module],
packages=find_packages(exclude=("tests",)),
data_files=[('', ['LICENSE'])],
extras_require={
'avro': ['fastavro', 'requests', avro]
})