WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
170439
[CMake] Enforce Python 2
https://bugs.webkit.org/show_bug.cgi?id=170439
Summary
[CMake] Enforce Python 2
Ross Kirsling
Reported
2017-04-03 19:14:07 PDT
Since WebKit's Python scripts only support 2.7.x, CMake should fail immediately upon discovering 3.x.x -- we shouldn't let the build run for potentially tens of minutes before a syntax error is finally encountered.
Attachments
Patch
(1.34 KB, patch)
2017-04-03 19:23 PDT
,
Ross Kirsling
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Ross Kirsling
Comment 1
2017-04-03 19:23:20 PDT
Created
attachment 306156
[details]
Patch
Brent Fulgham
Comment 2
2017-04-04 11:38:54 PDT
Comment on
attachment 306156
[details]
Patch This seems like a good idea! r=me.
WebKit Commit Bot
Comment 3
2017-04-04 12:06:49 PDT
Comment on
attachment 306156
[details]
Patch Clearing flags on attachment: 306156 Committed
r214886
: <
http://trac.webkit.org/changeset/214886
>
WebKit Commit Bot
Comment 4
2017-04-04 12:06:51 PDT
All reviewed patches have been landed. Closing bug.
Alex Christensen
Comment 5
2017-04-05 07:05:10 PDT
Why don't we just fix the problems with python 3 and support it? I think that's a better plan long-term.
Ross Kirsling
Comment 6
2017-04-05 10:22:44 PDT
For sure. I figured this was a less controversial change to start with though, and might get more people to ask the question you just asked. :P I'd be happy to update the scripts as a follow-up task, but I'm worried about how to ensure they *stay* compatible thereafter...?
Alex Christensen
Comment 7
2017-04-05 10:24:27 PDT
I could uninstall python2 and install python3 on at least my bot on build.webkit.org once it works, and then if it breaks the breakage would be noticed.
Don Olmstead
Comment 8
2017-04-05 10:40:43 PDT
(In reply to Alex Christensen from
comment #7
)
> I could uninstall python2 and install python3 on at least my bot on > build.webkit.org once it works, and then if it breaks the breakage would be > noticed.
There are automated tools we can run scripts through
https://docs.python.org/3/howto/pyporting.html
. There is a bug for Python 3 support at
https://bugs.webkit.org/show_bug.cgi?id=156674
Alex Christensen
Comment 9
2017-04-05 10:50:52 PDT
Could it be sustainable to support python2 and python3? If not, then we should just require python2
Don Olmstead
Comment 10
2017-04-05 11:10:08 PDT
(In reply to Alex Christensen from
comment #9
)
> Could it be sustainable to support python2 and python3? If not, then we > should just require python2
It sounds like its doable. I'm just not sure how much of a change it will be in the existing python code base. We can try running some of the automated tools over the tests and see how much the code changes.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug