<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>buntin.org &#187; Uncategorized</title>
	<atom:link href="http://buntin.org/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://buntin.org</link>
	<description></description>
	<lastBuildDate>Fri, 13 May 2011 00:29:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>OS X, Hombrew, MacVim and Python 2.7.1 troubles</title>
		<link>http://buntin.org/2011/05/12/os-x-hombrew-macvim-and-python-2-7-1-troubles/</link>
		<comments>http://buntin.org/2011/05/12/os-x-hombrew-macvim-and-python-2-7-1-troubles/#comments</comments>
		<pubDate>Thu, 12 May 2011 19:53:18 +0000</pubDate>
		<dc:creator>sethtrain</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://buntin.org/?p=113</guid>
		<description><![CDATA[Recently I decided to switch over to Vim from Emacs.  It was just a test to see what a Python development environment would be like and I must say I am quite pleased.  I ran into a couple of problems along the way.  This article got me started.  The process I [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I decided to switch over to Vim from Emacs.  It was just a test to see what a Python development environment would be like and I must say I am quite pleased.  I ran into a couple of problems along the way.  <a href="http://sontek.net/turning-vim-into-a-modern-python-ide">This article</a> got me started.  The process I am about to detail wasn&#8217;t what I really wanted but it accomplishes my end goal which was to have MacVim set up to use my &#8220;homebrewed&#8221; Python install and work well with the virtualenv settings discussed in the article.</p>
<p>Python needs to be installed with the &#8220;framework&#8221; option:</p>
<pre class="brush: bash; title: ;">
$ brew install python --framework
</pre>
<p>Next you need to update the &#8220;Current&#8221; OS X symbolic link:</p>
<pre class="brush: bash; title: ;">
$ cd /System/Library/Frameworks/Python.framework/Versions/
$ sudo rm Current
$ sudo ln -s /usr/local/Cellar/python/2.7.1/Frameworks/Python.framework/Versions/Current
</pre>
<p>If you have to remove your current python installation (installed with homebrew) you may need to reinstall setuptools, pip, virtualenv, virtuelenvwrapper, etc.</p>
<p>For my virtualenvwrapper to work correctly I needed to take these steps and set up my .bashrc file accordingly:</p>
<pre class="brush: bash; title: ;">
$ cd /usr/local/share
$ ln -s ../Cellar/python/2.7.1/bin python
</pre>
<p>Update .bashrc:</p>
<pre class="brush: bash; title: ;">
$ export PATH=/usr/local/share/python:$PATH
</pre>
<p>Next you must install MacVim from source.  <a href="https://github.com/b4winckler/macvim/tarball/snapshot-57">Download the latest package</a>, untar and configure:</p>
<pre class="brush: bash; title: ;">
$ cd b4winckler-macvim-6e6fac5
$ ./configure --enable-gui=macvim --with-features=huge --enable-rubyinterp --enable-pythoninterp --enable-perlinterp --with-python-config-dir=/usr/local/Cellar/python/2.7.1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config
$ make
$ cp -R src/MacVim/build/Release/MacVim.app /Application
</pre>
<p>Once this is done everything seemed to work perfect!  On my Ubuntu VM I didn&#8217;t have to do anything special like this so I mark it up with how Mac OS X handles Frameworks differently from other Unix/Linux systems.</p>
<p>Hope this helps!</p>
<p><strong>Update:</strong></p>
<p>To use this compiled version in your terminal I found this alias helpful:</p>
<pre class="brush: bash; title: ;">
alias vim='/Applications/MacVim.app/Contents/MacOS/Vim'
</pre>
]]></content:encoded>
			<wfw:commentRss>http://buntin.org/2011/05/12/os-x-hombrew-macvim-and-python-2-7-1-troubles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

