artemp/trac2github — Issue #233: Compiling python bindings to .pyc during install
Author: artemp
Created: 2011-10-09 20:22:26+00:00
State: open
Labels: Core_Library

Just noticed that as opposed to linux installs, where .pyc files are created after initial import:
{{{
#!python
>>> import mapnik
>>> mapnik.__file__
'/usr/lib/python2.5/site-packages/mapnik/__init__.pyc'
}}}

On mac os x is appears that the .pyc files are not able to be created (permissions?) and as such the bindings likely take longer to import each time:

{{{
#!python
$python -v
[...snip...]
>>> import mapnik
import mapnik # directory /Library/Python/2.5/site-packages/mapnik
import mapnik # from /Library/Python/2.5/site-packages/mapnik/__init__.py
# can't create /Library/Python/2.5/site-packages/mapnik/__init__.pyc
}}}