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 ..
|
- cd ..
|
||||||
|
|
||||||
# run through autotools and ./configure to make sure it works
|
# run through autotools and ./configure to make sure it works
|
||||||
# TODO: --enable-python-bindings
|
|
||||||
- 'if [[ "$autotools" == "1" ]]; then
|
- 'if [[ "$autotools" == "1" ]]; then
|
||||||
./autotool.sh &&
|
./autotool.sh &&
|
||||||
export CXX=g++-5 &&
|
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;
|
make -j2 check;
|
||||||
fi'
|
fi'
|
||||||
|
|
||||||
|
|
|
@ -112,6 +112,10 @@ else:
|
||||||
extra_link = flags.parse(ldflags)
|
extra_link = flags.parse(ldflags)
|
||||||
extra_compile = flags.parse(extra_cmd)
|
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',
|
ext = [Extension('libtorrent',
|
||||||
sources = source_list,
|
sources = source_list,
|
||||||
language='c++',
|
language='c++',
|
||||||
|
|
Loading…
Reference in New Issue