#!/usr/bin/env python

import subprocess


def main():
    # Install system dependencies
    subprocess.call(["apt-get", "update"])
    subprocess.call(["apt-get", "-y", "upgrade"])
    subprocess.call(["apt-get", "-y", "--force-yes", "install", "upstart"])
    subprocess.call(["apt-get", "-y", "install", "python-dev"])
    subprocess.call(["apt-get", "-y", "install", "python-pip"])
    subprocess.call(["pip", "install", "virtualenv"])

    # Copy Upstart script
    subprocess.call(["cp", "gpio-server.conf", "/etc/init"])


if __name__ == '__main__':
    main()

#!/usr/bin/env python

import subprocess


def main():
    # Install system dependencies
    subprocess.call(["apt-get", "update"])
    subprocess.call(["apt-get", "-y", "upgrade"])
    subprocess.call(["apt-get", "-y", "--force-yes", "install", "upstart"])
    subprocess.call(["apt-get", "-y", "install", "python-dev"])
    subprocess.call(["apt-get", "-y", "install", "python-pip"])
    subprocess.call(["pip", "install", "virtualenv"])

    # Copy Upstart script
    subprocess.call(["cp", "./gpio-server.conf", "/etc/init"])


if __name__ == '__main__':
    main()

Fix path to gpio upstart script
Fix path to gpio upstart script
