Commit 1d1db959 authored by Łukasz Nowak's avatar Łukasz Nowak

- hooks needed to have control over bzip2 compilation


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39833 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b972710a
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))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment