def python_modules():
    print
    print "building python eggs:"

    egg_log = '/tmp/zohmg-egg-install.log'
    egg_err = '/tmp/zohmg-egg-install.err'
    redirection = ">> %s 2>> %s" % (egg_log, egg_err)
    os.system('date > %s ; date > %s' % (egg_log, egg_err)) # reset logs.

    modules = ['paste', 'pyyaml', 'simplejson']
    print '(assuming setuptools is available.)'
    print '(logging to ' + egg_log + ' and ' + egg_err + ')'
    for module in modules:
        print 'module: ' + module
        r = os.system("easy_install -maxzd %s %s %s" % (egg_target, module, redirection))
        if r != 0:
            print
            print 'trouble!'
            print 'wanted to easy_install modules but failed.'
            print 'logs are at ' + egg_log + ' and ' + egg_err
            # pause.
            print "press ENTER to continue the installation or CTRL-C to break."
            try: sys.stdin.readline()
            except __HOLE__:
                print "ok."
                sys.exit(1)
    print 'python eggs shelled in ' + egg_target
dataset/ETHPy150Open zohmg/zohmg/install.py/python_modules