From ec21c4cf55316152678b88990106d95ea0bd409d Mon Sep 17 00:00:00 2001 From: John Dennison Date: Thu, 26 May 2016 19:45:07 +0000 Subject: [PATCH 1/2] Removed hard coded c extentions lib/include paths --- setup.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/setup.py b/setup.py index e0c24cce7..34cc1a6cc 100755 --- a/setup.py +++ b/setup.py @@ -5,9 +5,7 @@ module = Extension('confluent_kafka.cimpl', - include_dirs = ['/usr/local/include'], libraries= ['rdkafka'], - library_dirs = ['/usr/local/lib'], sources=['confluent_kafka/src/confluent_kafka.c', 'confluent_kafka/src/Producer.c', 'confluent_kafka/src/Consumer.c']) From 43e084ea7228966e80a962ef772955799e803029 Mon Sep 17 00:00:00 2001 From: John Dennison Date: Wed, 1 Jun 2016 21:09:08 +0000 Subject: [PATCH 2/2] added new build instructions for non standard librdkafka installation --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index c1fda7ca0..80b186b2c 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,9 @@ Build python setup.by build +If librdkafka is installed in a non-standard location provide the include and library directories with: + CPLUS_INCLUDE_PATH=/path/to/include LIBRARY_PATH=/path/to/lib python setup.py ... Tests