From 30873e9c9118bcf0f0755e7eb4a81fefcb19d9b7 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 10 Aug 2016 14:20:15 -0400 Subject: [PATCH] build python bindings with autotools on travis (#991) build python bindings with autotools on travis --- .travis.yml | 3 +-- bindings/python/setup.py | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 97b0c5777..261c23230 100644 --- a/.travis.yml +++ b/.travis.yml @@ -159,11 +159,10 @@ script: - cd .. # run through autotools and ./configure to make sure it works -# TODO: --enable-python-bindings - 'if [[ "$autotools" == "1" ]]; then ./autotool.sh && export CXX=g++-5 && - ./configure --enable-debug --enable-encryption --enable-examples --enable-tests && + ./configure --enable-debug --enable-encryption --enable-examples --enable-tests --enable-python-binding && make -j2 check; fi' diff --git a/bindings/python/setup.py b/bindings/python/setup.py index e7dc06c9c..f42ee59f5 100644 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -112,6 +112,10 @@ else: extra_link = flags.parse(ldflags) extra_compile = flags.parse(extra_cmd) + # for some reason distutils uses the CC environment variable to determine + # the compiler to use for C++ + os.environ["CC"] = os.environ['CXX'] + ext = [Extension('libtorrent', sources = source_list, language='c++',