My block finally works! But still I got a question about installing:
I found the following scripts in Makefile.am (in the same directory with .cc .h .i files)
# Install so that they end up available as:
# import gnuradio.lpi # This ends up at: # ${prefix}/lib/python${python_version}/site-packages/gnuradio lpi_pythondir_category = \ gnuradio
While I found all gnuradio core blocks were installed in dist-packages on my PC(different from site-packages above), so I was wondering I could manually set the route with following scripts to install: