[Erp5-report] r39833 luke - /erp5/trunk/buildout/hooks/bzip2-hooks.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Nov 3 13:46:55 CET 2010
Author: luke
Date: Wed Nov 3 13:46:54 2010
New Revision: 39833
URL: http://svn.erp5.org?rev=39833&view=rev
Log:
- hooks needed to have control over bzip2 compilation
Added:
erp5/trunk/buildout/hooks/bzip2-hooks.py
Added: erp5/trunk/buildout/hooks/bzip2-hooks.py
URL: http://svn.erp5.org/erp5/trunk/buildout/hooks/bzip2-hooks.py?rev=39833&view=auto
==============================================================================
--- erp5/trunk/buildout/hooks/bzip2-hooks.py (added)
+++ erp5/trunk/buildout/hooks/bzip2-hooks.py [utf8] Wed Nov 3 13:46:54 2010
@@ -0,0 +1,8 @@
+import os
+import shutil
+def post_make_hook(options, buildout):
+ make_options_list = [q for q in options.get('make-options', '').split('\n') if q]
+ if os.system('make %s -f Makefile-libbz2_so' % ' '.join(make_options_list)) != 0:
+ raise ValueError('Generation of dynamic library failed')
+ for f in [q for q in os.listdir(os.curdir) if '.so' in q]:
+ shutil.copyfile(f, os.path.join(options['location'], 'lib', f))
More information about the Erp5-report
mailing list