-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[bootstrap] Update bootstrap utility to be Python 3 compatible #197
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
[bootstrap] Update bootstrap utility to be Python 3 compatible #197
Conversation
@@ -41,6 +41,7 @@ import shutil | |||
import subprocess | |||
import sys | |||
import tempfile | |||
import codecs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit-pick: Let's keep this list of imports in alphabetical order. How about putting this between import argparse
and import errno
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem; pushed that change up.
* Enforce a UTF-8 encoded string when reading Package.swift * Convert `map` to `list` in Python 3
[bootstrap] Update bootstrap utility to be Python 3 compatible
I think this made Python 2 incompatible, is that intended? I am getting this error with default python 2.7.10
I was able to bootstrap using : |
That certainly wasn't intended. I tested it on my Mac (which has Python 2.7.11) and on my Linux box (which has Python 3.5.1). Both are able to bootstrap just fine for me. When I submitted the line it looked like
the line you show in that error message looks like
Note that the |
not sure what happened, I deleted and re-fetched the master; |
If you see it again see if you can verify exactly what version of Python that is.
|
I think it was some issue with git and maybe was related to 6008cef |
Ah, yes that makes sense. |
This was my bad, though not because of this commit, I merged another python PR manually as it was conflicting with this one and I merged it badly. Then pushed a fix. |
[BuildSystem] Fix symlink output value if the output is ever missing.
Package.swift
map
tolist
in Python 3Fixes SR-934