Closed Bug 1621359 Opened 5 years ago Closed 4 years ago

Update other-licenses/ply to support py3

Categories

(Firefox Build System :: General, task, P3)

task

Tracking

(firefox77 fixed)

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: mshal, Assigned: KrisWright)

References

Details

Attachments

(2 files)

Our version of ply doesn't work with python3, which blocks us from converting some uses of python2 during a build. According to the README, this comes from http://www.dabeaz.com/ply/

Blocks: 1621361
Blocks: 1621363
Blocks: 1621452

Unfortunately the new Python 3-compatible version of PLY depends on Python 3.6.

Blocks: 1623718
Depends on: 1622963

According to https://github.com/dabeaz/ply/blob/master/CHANGES ply version 3.8 is still working with Python 3.5. Maybe even newer versions.

I'm ambivalent about upgrading to an old version of ply (which, according to the changelog, is missing at least a couple bugfixes) just so we can maintain support for an old version of Python, but that could be an option in the short-term just to get us over the Py3 hump.

This pattern:

native nsSize (nsSize);
             ^

Causes a parsing error in ply 3.10. This can be easily fixed by removing the space and reformatting to this:

native nsSize(nsSize);

This is the most recent version of ply to still support python 3.5.

Assignee: nobody → kwright
Status: NEW → ASSIGNED
Pushed by kwright@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fe6f888d24b8 Update .idl files to work with ply3 r=mccr8 https://hg.mozilla.org/integration/autoland/rev/71493b055359 Update ply to ply 3.10 r=firefox-build-system-reviewers,rstewart
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
Pushed by geoff@darktrojan.net: https://hg.mozilla.org/comm-central/rev/6adb081c5677 Port bug 1621359 - Update .idl files to work with ply3. rs=bustage-fix
Regressions: 1630362
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: