root/buildout/rtree.buildout/trunk/hooks.py

Revision 1010, 469 bytes (checked in by dokai, 2 years ago)

Updated the buildout to match the changes in the spatialindex source tree.

Line 
1import os
2import logging
3
4log = logging.getLogger('spatialindex')
5
6def preconfigure(options, buildout):
7    """Generate the configure script if necessary."""
8    configure = os.path.join(options['compile-directory'], 'configure')
9    if not os.path.exists(configure):
10        log.info('Creating configure script')
11        os.system('cd %s && automake --add-missing' % options['compile-directory'])
12        os.system('cd %s && autoconf' % options['compile-directory'])
13
Note: See TracBrowser for help on using the browser.