This is an archive of the discontinued LLVM Phabricator instance.

Update swig generation shell scripts to run under Python 3.x
ClosedPublic

Authored by zturner on Oct 5 2015, 1:33 PM.

Details

Reviewers
tfiala
Summary

Todd, I'm putting you as the reviewer since you seem to be the most knowledgeable about Python. If you can think of someone better, let me know.

The goal here is for these scripts to be able to run successfully under both Python 2.x and Python 3.5. In most cases this was fairly straightforward. Only 1 or 2 places needed a version-switch.

Diff Detail

Event Timeline

zturner updated this revision to Diff 36545.Oct 5 2015, 1:33 PM
zturner retitled this revision from to Update swig generation shell scripts to run under Python 3.x.
zturner updated this object.
zturner added a reviewer: tfiala.
zturner added a subscriber: lldb-commits.
tfiala edited edge metadata.Oct 5 2015, 2:59 PM

Todd, I'm putting you as the reviewer since you seem to be the most knowledgeable about Python. If you can think of someone better, let me know.

I'll have a look tonight.

tfiala added a comment.Oct 5 2015, 3:00 PM

Todd, I'm putting you as the reviewer since you seem to be the most knowledgeable about Python. If you can think of someone better, let me know.

I'll have a look tonight.

I may try to switch over the Xcode build to use it as well, at the same time.

Todd, I'm putting you as the reviewer since you seem to be the most knowledgeable about Python. If you can think of someone better, let me know.

I'll have a look tonight.

I may try to switch over the Xcode build to use it as well, at the same time.

I attempted to drop in the script on the OS X Xcode build tonight. Detailed here:
https://llvm.org/bugs/show_bug.cgi?id=25062

It ends up not being a fast operation. I've spent a few hours getting it going but I still have link errors.

I was hoping I could have that working, and then make sure this doesn't break it, but at this point I don't have my desired starting condition (plugged into Xcode) satisfied.

I'll have to look at this tomorrow and I'll do it from a Linux slant since I may not have time at the moment to put more effort into getting it running on the Xcode side.

Okay all that said, the change itself looks fine. Have you tried it on Linux? I'll give it a go there in the morning. If it doesn't break there, I have no issues with this change.

tfiala accepted this revision.Oct 6 2015, 7:51 AM
tfiala edited edge metadata.

LGTM. I saw no issues on Ubuntu 14.04 x86_64 and the changes all look reasonable.

This revision is now accepted and ready to land.Oct 6 2015, 7:51 AM

Hey Zachary, I think this one went in, didn't it? Can you close it out if so? Thanks!

Yes this went in

tfiala closed this revision.Oct 11 2015, 9:44 AM

Great! Closing out.