I sort of saw this as a sequence of instructions that you follow in order starting at line 48 and stopping when you have what you want.  Because it wouldn't make sense to install pygpu, but not libgpuarray.