def build_gpio():
    """ Builds source with Python 2.7 and 3.2, and tests import """
    with cd("/tmp/source/c_gpio"):
        test = "import _GPIO; print(_GPIO.VERSION_GPIO)"
        run("make gpio2.7 && cp build/_GPIO.so .")
        run('sudo python2.7 -c "%s"' % test)
        run("cp _GPIO.so ../RPIO/")
        run("cp _GPIO.so ../RPIO/_GPIO27.so")
        run("make gpio3.2 && cp build/_GPIO.so .")
        run('sudo python3.2 -c "%s"' % test)
        run("mv _GPIO.so ../RPIO/_GPIO32.so")