[Webkit-unassigned] [Bug 184986] Make all python scripts compatible with both python2 and python3
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Sep 20 13:55:54 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=184986
--- Comment #20 from Adrian Perez <aperez at igalia.com> ---
(In reply to Michael Catanzaro from comment #19)
> I noticed today I can't use webkit-patch anymore:
>
> $ webkit-patch upload
> Unsupported Python version: WebKit only supports 2.7.x, and you're running
> 3.7.4.
>
> $ python --version
> Python 3.7.4
>
> So I'll upload my patch manually I guess.
>
> python is python3 in Fedora 31. The future is now....
Arch Linux has had “python” being 3.x for a long, long time.
Welcome to the club!
The easiest (and more tractable) way of dealing with this is
using a virtualenv. Quick recipe:
% cd ~/devel/WebKit/
% virtualenv .pyenv -p $(which python2)
...
% source .pyenv/bin/activate
% python -V
Python 2.7.16
% deactivate
% python -V
Python 3.7.4
%
Done, now “python” is version 2.7 and all the WebKit tooling will
work just fine. Remember to source the “activate” script when needed.
Or let something like https://github.com/inishchith/autoenv automate
that for you =)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190920/4d615b24/attachment-0001.html>
More information about the webkit-unassigned
mailing list