diff --git a/.travis.yml b/.travis.yml index b9b799e4f..59622f709 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/bindings/python/Jamfile b/bindings/python/Jamfile index 48299ed2a..384a91625 100644 --- a/bindings/python/Jamfile +++ b/bindings/python/Jamfile @@ -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 : . on LIB diff --git a/bindings/python/src/module.cpp b/bindings/python/src/module.cpp index d64fae6c9..1146e377f 100644 --- a/bindings/python/src/module.cpp +++ b/bindings/python/src/module.cpp @@ -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(); diff --git a/bindings/python/test.py b/bindings/python/test.py index a3e4b5dbf..b4eaecb48 100644 --- a/bindings/python/test.py +++ b/bindings/python/test.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -import libtorrent as lt +import py_libtorrent as lt import unittest