pycrunch-trace icon indicating copy to clipboard operation
pycrunch-trace copied to clipboard

Need python2.7 support

Open pikhovkin opened this issue 4 years ago • 2 comments

Need python2.7 support

pikhovkin avatar Jun 08 '20 16:06 pikhovkin

The more I'm thinking about Python 2.7, the more I believe we should update our projects to 3.6+

On the other side I'm also working on Python 2.7 codebase, and inability to use own tools there makes me sad.

Does anyone have idea of how much time it will take to make a backport? Is it possible to use same pip package (codebase) for both Python 2.7 and 3.6+?

gleb-sevruk avatar Jun 09 '20 10:06 gleb-sevruk

@pikhovkin I backported/added experimental support for 2.7: https://github.com/gleb-sevruk/pycrunch-trace/tree/python2.7_support

In case if you interested in testing you can checkout this branch locally and link package in your 2.7 venv using cd ~/code/pycrunch_tracing pip install -e .

I'm having issues recording SQLAlchemy variables, but disabling variable tracing helps me: in file: ~/code/pycrunch_tracing/pycrunch_trace/pycrunch-profiles/default.profile.yaml set trace_variables: false

I'm not sure where to go with this backport (it seems to add more overhead that python 3+ version)

But this is at least something to start with.

gleb-britecore avatar Jun 10 '20 15:06 gleb-britecore