-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Make gyb explicitly reference python2.7 #1535
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
Conversation
The default python on some systems is not 2.7, but gyb needs python2.7 precisely.
We definitely have a few Python scripts that won't work on Python 2.6. What do you think about this, @practicalswift? |
@jasonmolenda @modocache I think PEP 0394 (The "python" Command on Unix-Like Systems) gives some good guidelines here:
Since OS X does not provide any Questions:
If we decide on changing the shebang line for |
Work has been done here, yes: #639 and #806. But I think we'll only end up really supporting whatever the CI buildbots use. If we're serious about supporting Python versions besides 2.7, I think we'll need to add to the CI build matrix.
Not necessarily old: modern releases of CentOS ship with Python 2.6.6. Not sure about the Python version required for LLVM, though. |
This is something I've been working on/off for awhile (i.e., making all the gyb files Python 2/3 compliant). There are a few confounding issues regarding PEP 0394 compliance. As far as I can remember (I cannot find the discussion thread anymore to link to it) but OSX is not 0394 compliant (i.e., there is no built in Regarding the LLVM requirement. You can read about some of it over here. But my take away is that, yes, LLVM does require Python 2.7 and they are working(?) on supporting both 2 and 3. |
@jasonprado I compile everyday on a system that has Python 3 and it works. The only thing that doesn't work are the tests. My work around has been to just disable the tests. YMMV but I thought I'd suggest that. |
@swift-ci Please test |
1 similar comment
@swift-ci Please test |
Make gyb explicitly reference python2.7
What's in this pull request?
One commit to make gyb reference python2.7 instead of just python.
Resolved bug number: (SR-)
Before merging this pull request to apple/swift repository:
Triggering Swift CI
The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:
Smoke Testing
Validation Testing
Note: Only members of the Apple organization can trigger swift-ci.
The default python on some systems is not 2.7, but gyb needs python2.7
precisely.