FrancescAlted/python-blosc — pull request #56 by esc (2014-01-12 18:10:02+00:00)
Title: need to set the PYTHONPATH explicitly

While it is true, that Python automatically add the current directory to the
PYTHONPATH, current direcory actually means the base directory of the script
that is being executed, in this case, the ``bench`` sub directory.

zsh» python bench/compare-pack-ptr.py
Traceback (most recent call last):
File "bench/compare-pack-ptr.py", line 18, in
import blosc
ImportError: No module named blosc

1 zsh» PYTHONPATH=. python bench/compare-pack-ptr.py
Creating a large NumPy array with 10**7 int64 elements:
[ 0 1 2 ..., 9999997 9999998 9999999]
Time for copying array with numpy.copy(): 0.031 s

Using *** blosclz *** compressor::
Time for pack_array/unpack_array: 0.117/0.086 s.Compr ratio: 136.24
Time for compress_ptr/decompress_p tr: 0.012/0.014 s.Compr ratio: 136.83