All pastes #1888832 Raw Edit

christian

public text v1 · immutable
#1888832 ·published 2010-06-22 21:32 UTC
rendered paste body
#!/bin/bash -e#if [ -d h5py ]; then exit -1; fi#unzip h5py_rearranged.zip#patch -p0 <h5py_patch_h5.diff#patch -p0 <h5py_patch_h5r.diffcd h5pyrm -v _conv.c _proxy.c utils.c h5*.c || echo Nothing to remove...cat >config.pxi <<EOD# This file is automatically generated.  Do not edit.DEF H5PY_VERSION = "1.3.0"DEF H5PY_API = 16     # Highest API level (i.e. 18 or 16)DEF H5PY_16API = 1    # 1.6.X API available (always true, for now)DEF H5PY_18API = 0    # 1.8.X API availableEODMODULES=( h5 h5e h5f h5g h5s h5t h5d h5a h5p h5z h5i h5r h5fd utils h5o h5l _conv _proxy )echo ${#MODULES[@]}for((i=0; i<${#MODULES[@]}; i++)); do	echo "$i, ${MODULES[$i]}"        cython ${MODULES[$i]}.pyxdone#sed -r 's%^([ \t]*cdef[ \t]+extern[ \t]+from[ \t]+)"(Python|structmember|unistd|time|stdlib|stdint|string|compile|frameobject|traceback|stdio|numpy/arrayobject|hdf5|H5api_adpt)\.h"([ \t]*:[ \t]*)$%\1<\2.h>\3%g w/dev/stdout' -i *.pxd#find . -type f -name \*.c -exec sed -r 's%"h5py\.(h5|_conv|_proxy|utils)([\.A-Za-z0-9_]*)"%"\1\2"%g w/dev/stdout' -i {} \;#find . -type f -name \*.c -exec sed -r 's%"(_extras|filters|highlevel|_ipy_completer|selections|_stub|version)"%"gpaw.h5py.\1"%g w/dev/stdout' -i {} \;