-
Notifications
You must be signed in to change notification settings - Fork 10.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change shebangs to specify python2 instead of system default #83
Conversation
OS X doesn't have a It does have a |
Really? That sounds very odd indeed... does |
|
Have you changed all the scripts, or just the ones which fail under Python 3? I’d be happy to work on getting them to run cleanly on either version. :-) I’m also getting “No such file or directory” when I run |
@harlanhaskins It does for me. |
I changed the header for all those that just specified "python" and am building swift right now. ArchLinux defaults to python3 for |
For reference, this is the error you get if you try to run
|
@Mitame Fix for that particular issue is in 5796230. |
This will break things on OS X. #90 is a better fix that will also make things to on arch. This should be closed. |
Yea, i was waiting for #90 to be accepted before closing this. |
cuurently with master λ ./utils/update-checkout --clone ~/H/swift/ ∅
Traceback (most recent call last):
File "./utils/update-checkout", line 20, in <module>
from SwiftBuildSupport import (
File "/root/H/swift/utils/SwiftBuildSupport.py", line 135
except ConfigParser.InterpolationMissingOptionError, e:
^
SyntaxError: invalid syntax
λ python --version ~/H/swift/ ∅
Python 3.4.3 and same with ConfigParser |
@gribozavr there are still being a lot of missing stuff from #90 |
@gribozavr I don't know how your python3 is working λ cd swift ~/ Π
λ ./utils/update-checkout --clone ~/swift/ Π
Traceback (most recent call last):
File "./utils/update-checkout", line 125, in <module>
sys.exit(main())
File "./utils/update-checkout", line 98, in main
obtain_additional_swift_sources()
File "./utils/update-checkout", line 69, in obtain_additional_swift_sources
for dir_name, repo in additional_repos.iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'
λ ~/swift/ ∅ |
@gribozavr by the way there are other python files with similar issues... for now I just manually set them to python2. I can elaborate consistent patch for python3 compatibility but not sure if there is already work in progress by @alexwlchan or not |
@gribozavr thanks but at least build scripts either should be updated... |
So, macOS Sierra doesn't have an alias for
|
Adjust pass/fail criteria in dispatch_concur
…ic-rawsyntax-calls [TokenSyntax] Use the token-specific RawSyntax functions for the TokenSyntax implementation, NFC
[run_cperf] Fix typo in anchor-making call.
motivation: cleanup changes: * better name for docker container * group source moving together and sort them
This replaces all shebangs in the python scripts to use python2 instead of system default. This is because not all of the python scripts support running in python3. The new shebangs use
#!/usr/bin/env python2