<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>170439</bug_id>
          
          <creation_ts>2017-04-03 19:14:07 -0700</creation_ts>
          <short_desc>[CMake] Enforce Python 2</short_desc>
          <delta_ts>2017-04-05 11:10:08 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Kirsling">ross.kirsling</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>bfulgham</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dbates</cc>
    
    <cc>dburkart</cc>
    
    <cc>don.olmstead</cc>
    
    <cc>fujii</cc>
    
    <cc>jbedard</cc>
    
    <cc>lforschler</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1293963</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Kirsling">ross.kirsling</who>
    <bug_when>2017-04-03 19:14:07 -0700</bug_when>
    <thetext>Since WebKit&apos;s Python scripts only support 2.7.x, CMake should fail immediately upon discovering 3.x.x --
we shouldn&apos;t let the build run for potentially tens of minutes before a syntax error is finally encountered.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1293965</commentid>
    <comment_count>1</comment_count>
      <attachid>306156</attachid>
    <who name="Ross Kirsling">ross.kirsling</who>
    <bug_when>2017-04-03 19:23:20 -0700</bug_when>
    <thetext>Created attachment 306156
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1294086</commentid>
    <comment_count>2</comment_count>
      <attachid>306156</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2017-04-04 11:38:54 -0700</bug_when>
    <thetext>Comment on attachment 306156
Patch

This seems like a good idea! r=me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1294096</commentid>
    <comment_count>3</comment_count>
      <attachid>306156</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-04-04 12:06:49 -0700</bug_when>
    <thetext>Comment on attachment 306156
Patch

Clearing flags on attachment: 306156

Committed r214886: &lt;http://trac.webkit.org/changeset/214886&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1294097</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-04-04 12:06:51 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1294485</commentid>
    <comment_count>5</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2017-04-05 07:05:10 -0700</bug_when>
    <thetext>Why don&apos;t we just fix the problems with python 3 and support it?  I think that&apos;s a better plan long-term.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1294546</commentid>
    <comment_count>6</comment_count>
    <who name="Ross Kirsling">ross.kirsling</who>
    <bug_when>2017-04-05 10:22:44 -0700</bug_when>
    <thetext>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&apos;d be happy to update the scripts as a follow-up task, but I&apos;m worried about how to ensure they *stay* compatible thereafter...?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1294547</commentid>
    <comment_count>7</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2017-04-05 10:24:27 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1294555</commentid>
    <comment_count>8</comment_count>
    <who name="Don Olmstead">don.olmstead</who>
    <bug_when>2017-04-05 10:40:43 -0700</bug_when>
    <thetext>(In reply to Alex Christensen from comment #7)
&gt; I could uninstall python2 and install python3 on at least my bot on
&gt; build.webkit.org once it works, and then if it breaks the breakage would be
&gt; 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1294562</commentid>
    <comment_count>9</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2017-04-05 10:50:52 -0700</bug_when>
    <thetext>Could it be sustainable to support python2 and python3?  If not, then we should just require python2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1294569</commentid>
    <comment_count>10</comment_count>
    <who name="Don Olmstead">don.olmstead</who>
    <bug_when>2017-04-05 11:10:08 -0700</bug_when>
    <thetext>(In reply to Alex Christensen from comment #9)
&gt; Could it be sustainable to support python2 and python3?  If not, then we
&gt; should just require python2

It sounds like its doable. I&apos;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.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>306156</attachid>
            <date>2017-04-03 19:23:20 -0700</date>
            <delta_ts>2017-04-04 12:06:49 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-170439-20170403192319.patch</filename>
            <type>text/plain</type>
            <size>1377</size>
            <attacher name="Ross Kirsling">ross.kirsling</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjE0ODI3CmRpZmYgLS1naXQgYS9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