@task
def setup_python_macos():
 HOMEBREW_URL = 'https://raw.githubusercontent.com/Homebrew/install/master/install'
 local(('/usr/bin/ruby -e "$(curl -fsSL %s)"' % HOMEBREW_URL))
 local('echo export PATH=/usr/local/bin:/usr/local/sbin:$PATH >> ~/.bash_profile')
 local('brew install python')
 local('brew update')
 local('pip install virtualenvwrapper')
 local('echo source /usr/local/bin/virtualenvwrapper.sh >> ~/.bash_profile')

@ task def setup_python_macos ( ) : HOMEBREW_URL = 'https://raw.githubusercontent.com/Homebrew/install/master/install' local ( ( '/usr/bin/ruby -e "$(curl -fsSL %s)"' % HOMEBREW_URL ) ) local ( 'echo export PATH=/usr/local/bin:/usr/local/sbin:$PATH >> ~/.bash_profile' ) local ( 'brew install python' ) local ( 'brew update' ) local ( 'pip install virtualenvwrapper' ) local ( 'echo source /usr/local/bin/virtualenvwrapper.sh >> ~/.bash_profile' )
setup python in macos via homebrew .