build python bindings with autotools on travis (#991)

build python bindings with autotools on travis
This commit is contained in:
Arvid Norberg 2016-08-10 14:20:15 -04:00 committed by GitHub
parent 330e683d13
commit 30873e9c91
2 changed files with 5 additions and 2 deletions

View File

@ -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'

View File

@ -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++',