<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Python Cartographic Library (PCL) &#8212; Installing Just the Spatial Package</title>
	<atom:link href="http://info.bycycle.org/2006/09/25/python-cartographic-library-pcl-installing-just-the-spatial-package/feed/" rel="self" type="application/rss+xml" />
	<link>http://info.bycycle.org/2006/09/25/python-cartographic-library-pcl-installing-just-the-spatial-package/</link>
	<description>Get There by Cycle!</description>
	<lastBuildDate>Thu, 03 Nov 2011 04:31:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Wyatt</title>
		<link>http://info.bycycle.org/2006/09/25/python-cartographic-library-pcl-installing-just-the-spatial-package/comment-page-1/#comment-103</link>
		<dc:creator>Wyatt</dc:creator>
		<pubDate>Thu, 26 Oct 2006 16:53:48 +0000</pubDate>
		<guid isPermaLink="false">http://bycycle.org/blog/2006/09/25/python-cartographic-library-pcl-installing-just-the-spatial-package/#comment-103</guid>
		<description>I just checked out revision 550 to a different machine (also running Dapper), and the installation is slightly different now:

- sudo apt-get install proj
- GDAL no longer seems necessary for PCL-Core
- Install geos 2.2.3 from source (Note to self: apparently libs for extension modules must be installed under the same prefix as Python; e.g., if Python is under /usr/lib, you can&#039;t install geos into /usr/local/lib.)
- Check out the PCL trunk:
cd ~/src &amp;&amp; svn co http://svn.gispython.org/gispy/PCL/trunk PCL
- cd PCL/PCL-Core
- sudo setup.py install

OK, so that last step really only worked after I modified setup.py in PCL-Core like so:
&lt;pre&gt;from distutils.core import setup, Extension
### Added extensions
proj4_extension = Extension(
&#039;cartography.proj.transform._proj4&#039;,
sources=[&#039;cartography/proj/transform/_proj4module.c&#039;],
libraries=[&#039;proj&#039;],
include_dirs=[]
)

geom_extension = Extension(
&#039;cartography.geometry._geom&#039;,
sources=[&#039;cartography/geometry/_geommodule.c&#039;],
libraries=[&#039;geos_c&#039;, &#039;proj&#039;]
)
### End

# ---------------------------------------------------------------------------
# Execute setup
# ---------------------------------------------------------------------------
setup(
name          = &#039;Python Cartographic Library&#039;,
version       = &#039;0.11.0&#039;,
description   = &#039;Library for rendering maps from GIS data&#039;,
author          = &#039;Sean Gillies&#039;,
author_email  = &#039;sgillies@frii.com&#039;,
url           = &#039;http://zmapserver.sourceforge.net/&#039;,
packages      = [&#039;cartography&#039;,
### Added  stuff below here
&#039;cartography.geometry&#039;,
&#039;cartography.proj&#039;,
&#039;cartography.proj.transform&#039;,
],
ext_modules   = [proj4_extension,
geom_extension,
],
)&lt;/pre&gt;
Actually, I don&#039;t know if this &lt;em&gt;really&lt;/em&gt; works. I just did the &quot;smoke test&quot; of `python -c &#039;import cartography.geometry&#039;`. &lt;em&gt;[Update: It does work.]&lt;/em&gt;</description>
		<content:encoded><![CDATA[<p>I just checked out revision 550 to a different machine (also running Dapper), and the installation is slightly different now:</p>
<p>- sudo apt-get install proj<br />
- GDAL no longer seems necessary for PCL-Core<br />
- Install geos 2.2.3 from source (Note to self: apparently libs for extension modules must be installed under the same prefix as Python; e.g., if Python is under /usr/lib, you can&#8217;t install geos into /usr/local/lib.)<br />
- Check out the PCL trunk:<br />
cd ~/src &#038;&#038; svn co <a href="http://svn.gispython.org/gispy/PCL/trunk" rel="nofollow">http://svn.gispython.org/gispy/PCL/trunk</a> PCL<br />
- cd PCL/PCL-Core<br />
- sudo setup.py install</p>
<p>OK, so that last step really only worked after I modified setup.py in PCL-Core like so:</p>
<pre>from distutils.core import setup, Extension
### Added extensions
proj4_extension = Extension(
'cartography.proj.transform._proj4',
sources=['cartography/proj/transform/_proj4module.c'],
libraries=['proj'],
include_dirs=[]
)

geom_extension = Extension(
'cartography.geometry._geom',
sources=['cartography/geometry/_geommodule.c'],
libraries=['geos_c', 'proj']
)
### End

# ---------------------------------------------------------------------------
# Execute setup
# ---------------------------------------------------------------------------
setup(
name          = 'Python Cartographic Library',
version       = '0.11.0',
description   = 'Library for rendering maps from GIS data',
author          = 'Sean Gillies',
author_email  = 'sgillies@frii.com',
url           = '<a href="http://zmapserver.sourceforge.net/&#039;" rel="nofollow">http://zmapserver.sourceforge.net/&#039;</a>,
packages      = ['cartography',
### Added  stuff below here
'cartography.geometry',
'cartography.proj',
'cartography.proj.transform',
],
ext_modules   = [proj4_extension,
geom_extension,
],
)</pre>
<p>Actually, I don&#8217;t know if this <em>really</em> works. I just did the &#8220;smoke test&#8221; of `python -c &#8216;import cartography.geometry&#8217;`. <em>[Update: It does work.]</em></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean Gillies</title>
		<link>http://info.bycycle.org/2006/09/25/python-cartographic-library-pcl-installing-just-the-spatial-package/comment-page-1/#comment-72</link>
		<dc:creator>Sean Gillies</dc:creator>
		<pubDate>Sun, 08 Oct 2006 21:58:55 +0000</pubDate>
		<guid isPermaLink="false">http://bycycle.org/blog/2006/09/25/python-cartographic-library-pcl-installing-just-the-spatial-package/#comment-72</guid>
		<description>I just recently switched to Ubuntu and followed these same steps when refreshing my development environment. Now I&#039;m working on making PCL easier to install by completely isolating all PCL dependencies on GDAL and MapServer. See &lt;a href=&quot;http://trac.gispython.org/projects/PCL/wiki/DependencyMinimization&quot; rel=&quot;nofollow&quot;&gt;http://trac.gispython.org/projects/PCL/wiki/DependencyMinimization&lt;/a&gt;. The new core would depend only on PROJ.4 and GEOS.</description>
		<content:encoded><![CDATA[<p>I just recently switched to Ubuntu and followed these same steps when refreshing my development environment. Now I&#8217;m working on making PCL easier to install by completely isolating all PCL dependencies on GDAL and MapServer. See <a href="http://trac.gispython.org/projects/PCL/wiki/DependencyMinimization" rel="nofollow">http://trac.gispython.org/projects/PCL/wiki/DependencyMinimization</a>. The new core would depend only on PROJ.4 and GEOS.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

