[Checkins] SVN: zc.recipe.cmmi/trunk/ Add extra_options setting so pass extra options to configure.

Martijn Faassen faassen at infrae.com
Wed Sep 27 13:49:48 EDT 2006


Log message for revision 70401:
  Add extra_options setting so pass extra options to configure.
  

Changed:
  A   zc.recipe.cmmi/trunk/CHANGES.txt
  U   zc.recipe.cmmi/trunk/zc/recipe/cmmi/__init__.py

-=-
Added: zc.recipe.cmmi/trunk/CHANGES.txt
===================================================================
--- zc.recipe.cmmi/trunk/CHANGES.txt	2006-09-27 14:24:33 UTC (rev 70400)
+++ zc.recipe.cmmi/trunk/CHANGES.txt	2006-09-27 17:49:48 UTC (rev 70401)
@@ -0,0 +1,14 @@
+======================
+zc.recipe.cmmi changes
+======================
+
+unreleased
+==========
+
+Features added
+--------------
+
+Added an 'extra_options' buildout option to pass extra configure
+options to the configure step. This is useful when compiling a library
+that expects another library to be installed in another part already,
+such as libxslt which expects libxml2.

Modified: zc.recipe.cmmi/trunk/zc/recipe/cmmi/__init__.py
===================================================================
--- zc.recipe.cmmi/trunk/zc/recipe/cmmi/__init__.py	2006-09-27 14:24:33 UTC (rev 70400)
+++ zc.recipe.cmmi/trunk/zc/recipe/cmmi/__init__.py	2006-09-27 17:49:48 UTC (rev 70401)
@@ -14,6 +14,8 @@
 
     def install(self):
         dest = self.options['prefix']
+        extra_options = self.options.get('extra_options', '')
+        
         if os.path.exists(dest):
             return dest # already there
 
@@ -42,7 +44,8 @@
                         else:
                             raise ValueError("Couldn't find configure")
 
-                    system("./configure --prefix="+dest)
+                    system("./configure --prefix=%s %s" %
+                           (dest, extra_options))
                     system("make")
                     system("make install")
                 finally:



More information about the Checkins mailing list