<?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>Linden LAN &#187; Python</title>
	<atom:link href="http://www.lindenlan.net/tag/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lindenlan.net</link>
	<description></description>
	<lastBuildDate>Sat, 29 Nov 2014 04:54:20 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>Easy_Update Upgrade All</title>
		<link>http://www.lindenlan.net/2008/08/08/easy_update-upgrade-all/</link>
		<comments>http://www.lindenlan.net/2008/08/08/easy_update-upgrade-all/#comments</comments>
		<pubDate>Fri, 08 Aug 2008 16:53:48 +0000</pubDate>
		<dc:creator><![CDATA[Brian]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.lindenlan.net/2008/08/08/easy_update-upgrade-all/</guid>
		<description><![CDATA[I like Ruby, but I don’t like its performance, so I’m really anticipating Ruby 2.0. Meanwhile, I’ve been dabbling in Python. Learning a new language and comparing and contrasting them, really helps with determining each language’s strengths and weaknesses. For example, you can easily update all your Ruby gems. Unfortunately, python doesn’t have a direct [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>I like <a href="http://www.ruby-lang.org/">Ruby</a>, but I don’t like its performance, so I’m really anticipating Ruby 2.0.  Meanwhile, I’ve been dabbling in <a href="http://www.python.org/">Python</a>.  Learning a new language and comparing and contrasting them, really helps with determining each language’s strengths and weaknesses.  For example, you can easily update all your Ruby gems.  Unfortunately, python doesn’t have a direct way of doing this using easy_install.  Very odd.  I tried using the <a href="http://semanticmikeal.com/2007/04/easyinstall-upgrade-all.html">shell script method</a>, but for whatever reason it just didn’t work as advertised.  So I wrote a bash alias to take care of it.</p>
<p><span id="more-61"></span></p>
<pre class="brush: python">
alias easy_install_upgrade_all=&#039;python -c &quot;for dist in __import__(&#039;\&#039;&#039;pkg_resources&#039;\&#039;&#039;).working_set: print dist.project_name&quot; | while read package; do sudo easy_install -U &quot;${package}&quot; ; done&#039;
</pre>
<p>Put that alias in your <code>~/.bash_aliases</code> file, run <code>exec bash</code>, and you should be good to go (assuming your <code>.bashrc</code> file is setup to automatically load your <code>.bash_aliases</code> file).  Note the use of escaped single-quotes around “pkg_resources”.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lindenlan.net/2008/08/08/easy_update-upgrade-all/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
