gozerbot goes nesting

so we use pypi now to distribute gozerbot and this made me realize that easy_install could also be used to make a local installation of gozerbot. this puts gozerbot and all its dependancies into 1 directory from which gozerbot can be run. thus i made this script which is downloadable from http://gozerbot.org/gozerbot-nest

quickrun:

  • wget http://gozerbot.org/gozerbot-nest
  • chmod +x gozerbot-nest
  • ./gozerbot-nest
  • cd gozernest
  • ./gozerbot –owner <your userhost>
  • edit gozerdata/mainconfig and gozerdata/fleet/default/config
  • DONE !! ;]

here is the script for the curious:

#!/usr/bin/env python
#
#

__copyright__ = 'this file is in the public domain'

from subprocess import Popen, PIPE
import sys, site, os, subprocess

if not os.path.isdir('gozernest'):
os.mkdir('gozernest')
nestdir = os.path.abspath(os.path.join(os.getcwd(), 'gozernest'))
os.environ['PYTHONPATH'] = nestdir
proc = Popen('easy_install --install-dir gozernest -U gozerbot gozerplugs'.split() + sys.argv[1:], stdout=sys.stdout, shell=False)
proc.wait()
print 'done'
os._exit(0)

Leave a Reply