another attempt to fix python unit test

This commit is contained in:
arvidn 2015-07-27 00:21:02 -07:00
parent 105c105867
commit 167577aec4
4 changed files with 6 additions and 6 deletions

View File

@ -46,6 +46,6 @@ script:
- cd ../examples
- bjam -j 3 variant=$variant warnings=off $CC
- cd ../bindings/python
- bjam -j 3 variant=$variant warnings=off $CC stage_module
- python test.py
- bjam -j 3 variant=$variant warnings=off $CC stage
- LD_LIBRARY_PATH=./deps python test.py
- ccache --show-stats

View File

@ -110,7 +110,7 @@ rule my-python-extension ( name : sources * : requirements * : default-build * :
] ;
}
my-python-extension libtorrent
my-python-extension py_libtorrent
: # sources
src/module.cpp
src/big_number.cpp
@ -141,7 +141,7 @@ my-python-extension libtorrent
;
install stage_module
: libtorrent
: py_libtorrent
: <location>.
<install-dependencies>on
<install-type>LIB

View File

@ -29,7 +29,7 @@ void bind_converters();
void bind_create_torrent();
void bind_error_code();
BOOST_PYTHON_MODULE(libtorrent)
BOOST_PYTHON_MODULE(py_libtorrent)
{
Py_Initialize();
PyEval_InitThreads();

View File

@ -1,6 +1,6 @@
#!/usr/bin/env python
import libtorrent as lt
import py_libtorrent as lt
import unittest