forked from premiere/premiere-libtorrent
another attempt to fix python unit test
This commit is contained in:
parent
105c105867
commit
167577aec4
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import libtorrent as lt
|
||||
import py_libtorrent as lt
|
||||
|
||||
import unittest
|
||||
|
||||
|
|
Loading…
Reference in New Issue