-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
building for Python 2 #4560
Comments
You may want to try the module name as python27. |
Now it builds the library, but for Python 3.8. Building code:
Log:
|
Current CMake script is using the deprecated |
Not sure how and what it is now, but it was okay with 1.2.5 and python2.7. Here is cmake command I used to build it.
|
Thank you! I did not provide this variable to |
Please provide the following information
libtorrent version (or branch): 1.2.5 RC_1_2
platform/architecture: ArchLinux 5.6.4-arch1-1 #1 SMP PREEMPT Mon, 13 Apr 2020 12:21:19 +0000 x86_64 GNU/Linux
compiler and compiler version: g++ (Arch Linux 9.3.0-1) 9.3.0, cmake 3.17.1
I am trying to build the library with the Python binding for Python 2 with the following command.
Assigning
python2
orpython-2.7
toboost-python-module-name
causes an error like this.Probably, I misunderstood
bindings/python/CMakeLists.txt
. Ifpython
is assigned toboost-python-module-name
,import libtorrent
in Python 2 fails withThe text was updated successfully, but these errors were encountered: