Replies: 2 comments 1 reply
-
|
So even if I can build without the b2 args for linking (it not be how to fix build) I still need to somehow enable webtorrent or any other feature or debug param that someone else would use the python client to troubleshot. It's really handy to have a minimal client within the lib repo to directly test it without having a complex client on top. For which building might be even more a mess. |
Beta Was this translation helpful? Give feedback.
-
|
Btw, the traditional way of building the python module still works. I find this more reliable: A python module has to be a shared library, so If you want to link statically against libtorrent and boost, you can add |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi :)
I'm trying this: #7333 (comment)
I'm on EndeavourOS with boost and openssl packages which on Arch based distros include the devel stuff.
I have libssl.so and libcrypto.so and the openssl and boost headers in /usr/include.
Should I be using a venv?
sudo python3 -m pip install [...]is how in the past I messed /usr/lib with stuff not from repos. Is venv the current way to go in general? Is it compatible with libretorrent build process in particular?After all, there is no sudo used in #7333 (comment)
So something is done to not install in /
What I did:
After that I did:
It tried statically by default. So I'm trying to pass
--b2-args=webtorrent=on\ libtorrent-link=shared\ boost-link=sharedBut it end up ignored due to pypa/pip#11859 and pypa/setuptools#2491
I tried
python3 -m pip install --verbose --config-settings=--global-option=--b2-args=webtorrent=on\ libtorrent-link=shared\ boost-link=shared git+https://github.com/arvidn/libtorrent.git@masterBut it leads to
python3 -m pip install --verbose --no-use-pep517 --global-option="--b2-args=webtorrent=on\ libtorrent-link=shared\ boost-link=shared" git+https://github.com/arvidn/libtorrent.git@masterpython3 -m pip install --verbose --config-settings="--build-option='--b2-args=webtorrent=on\ libtorrent-link=shared\ boost-link=shared'" git+https://github.com/arvidn/libtorrent.git@masterI tried other variations with no better outcome but I'm likely no even digging in the right direction.
Beta Was this translation helpful? Give feedback.
All reactions