osx - Sublime: Change Python version used by plugins -


could tell me doing wrong in selecting different version of python sublime text 2 (running on mac)? want sublime use python 3.2 not python 2.6 default version on mac.

i want sublime use python 3.2 plugins write.

i followed steps mentioned in answer this question.

this not working. know not working have written simple plugin print version , prints 2.6.7

my python.sublime-build

{     //default     //"cmd": ["python", "-u", "$file"],      "cmd": ["/library/frameworks/python.framework/versions/3.2/bin/python3.2", "-u", "$file"],     "file_regex": "^[ ]*file \"(...*?)\", line ([0-9]*)",     "selector": "source.python" } 

plugins use internal version of python included sublime text 2, not python installed on system.

from official plugin porting guide sublime text 3 (which in beta):

sublime text 3 uses python 3.3, while sublime text 2 used python 2.6.

as detail in an answer related question, cannot change version of python, sublime break. so, if want write plugins st2, you'll have use python 2.6. if must use py3 can use st3.

your python.sublime-build file entirely different. used running programs you've written in whichever version (or language) want. however, not plugins.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -