forked from premiere/premiere-libtorrent
build python bindings with autotools on travis (#991)
build python bindings with autotools on travis
This commit is contained in:
parent
330e683d13
commit
30873e9c91
|
@ -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'
|
||||
|
||||
|
|
|
@ -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++',
|
||||
|
|
Loading…
Reference in New Issue