$sudo apt-get install gcc g++ python python-dev mercurial bzr gdb valgrind gsl-bin libgsl0-dev libgsl0ldbl flex bison tcpdump sqlite sqlite3 libsqlite3-dev libxml2 libxml2-dev libgtk2.0-0 libgtk2.0-dev uncrustify doxygen graphviz imagemagick texlive texlive-latex-extra texlive-generic-extra texlive-generic-recommended texinfo dia texlive texlive-latex-extra texlive-extra-utils texlive-generic-recommended texi2html python-pygraphviz python-kiwi python-pygoocanvas libgoocanvas-dev python-pygccxml
$ ./build.py --enable-examples --enable-tests
$ ./waf -d debug --enable-examples --enable-tests configure
You are supposed to execute your python code using waf shell so create waf shell then you can execute your code, to do this from terminal enter to the location where waf file is located.
$ ./waf shell $ python examples/wireless/mixed-wireless.py