I’m trying to build a Python 2 Build System for ST3. From the menus I select New Build System and put the following into the file that appears:
{
"cmd": "/usr/local/bin/python2", "-u", "$file"],
"file_regex": '^ ]*File \"(...*?)\', line ([0-9]*)",
"selector": "source.python"
}
*yes the python2 interpreter lives there and works from the cmd line.
I save the above as Python2.sublime-build; it then appears in the build menu but if I select it and execute ⌘-B on test.py containing only << print “Hello World” >> I get an error that indicates it’s still building it with Python 3…
File "./test.py", line 1
print "Hello World"
^
SyntaxError: Missing parentheses in call to 'print'
I’m on OSX using ST3 Build 3095.
Any ideas? Thanks for your help.
J.