Re: [lldb-dev] Python3 compatibility for the API

2016-09-14 Thread Pavel Labath via lldb-dev
: lldb-dev [mailto:lldb-dev-boun...@lists.llvm.org] On Behalf Of Luke > Drummond via lldb-dev > Sent: Tuesday, August 30, 2016 7:01 AM > To: lldb-dev@lists.llvm.org > Subject: Re: [lldb-dev] Python3 compatibility for the API > > Hi Zachary, Peter > > On 30/08/16 00:14, Zac

Re: [lldb-dev] Python3 compatibility for the API

2016-09-13 Thread Ted Woodward via lldb-dev
: Re: [lldb-dev] Python3 compatibility for the API Hi Zachary, Peter On 30/08/16 00:14, Zachary Turner via lldb-dev wrote: > Right, the existing version that is built and what you are using links > directly against a 2.7 libpython at compile time. So you would > probably need to build LL

Re: [lldb-dev] Python3 compatibility for the API

2016-08-30 Thread Luke Drummond via lldb-dev
Hi Zachary, Peter On 30/08/16 00:14, Zachary Turner via lldb-dev wrote: Right, the existing version that is built and what you are using links directly against a 2.7 libpython at compile time. So you would probably need to build LLDB from source and tweak the build system to make it possible to

Re: [lldb-dev] Python3 compatibility for the API

2016-08-30 Thread Pavel Labath via lldb-dev
We don't have any immediate plans to make lldb work with python 3 on linux. However, I would be willing to guide you through making that work. As Zachary pointed out, it should be fairly simple, given that it already works on windows. I don't think you'll be able to avoid building your own copy of

Re: [lldb-dev] Python3 compatibility for the API

2016-08-29 Thread Zachary Turner via lldb-dev
Right, the existing version that is built and what you are using links directly against a 2.7 libpython at compile time. So you would probably need to build LLDB from source and tweak the build system to make it possible to link against your 3.x version of python. There's some build instructions

Re: [lldb-dev] Python3 compatibility for the API

2016-08-29 Thread Peter Gebhard via lldb-dev
Hmm…sure? I can try. Feel free to send me any tips. It does show syntax errors when trying to import the existing lldb module in Python 3, however. Thanks, Peter > On Aug 29, 2016, at 6:42 PM, Zachary Turner wrote: > > 3.6.2 should be new enough, Python 3 has been working for over a year and

Re: [lldb-dev] Python3 compatibility for the API

2016-08-29 Thread Zachary Turner via lldb-dev
3.6.2 should be new enough, Python 3 has been working for over a year and it's actually the only supported configuration right now on Windows. Most likely the problem is just that I never updated the build system to work with a platform other than Windows. Unfortunately, being that I work primari

Re: [lldb-dev] Python3 compatibility for the API

2016-08-29 Thread Peter Gebhard via lldb-dev
Zachary, Great to hear! I was trying it out on Ubuntu 15.10 (which has lldb 3.6.2), and it seemed that the relevant modules were only installed with the Python 2 packages. Is it an installation issue on my side, or did 3.6.2 not have your changes yet? I can always install a newer version of lld

Re: [lldb-dev] Python3 compatibility for the API

2016-08-29 Thread Zachary Turner via lldb-dev
Hi, LLDB already supports Python 3. I spent a LONG time making this work. :) I've only ever tested the Python 3 support on Windows, and I've only tested 3.5 and above, but I don't expect any major difficulties getting it working on another platform, although you may need to tweak the CMake a li

[lldb-dev] Python3 compatibility for the API

2016-08-29 Thread Peter Gebhard via lldb-dev
Hello, I am developing a tool which is written in Python3 due to its use of some libraries which require it. I am wondering if there is a sane way to integrate use of the LLDB Python API into my tool or is there a plan to add Python3 support for the LLDB Python API in the near future? Thank yo