Skip to content
Browse files

renamed everything to "oldumbo"

  • Loading branch information...
1 parent 8585087 commit 00d838a8ac52cf4916bf251833d87a08f613b88d Klaas Bosteels committed Nov 28, 2008
Showing with 9 additions and 9 deletions.
  1. +7 −7 src/python/{dumbo.py → oldumbo.py}
  2. +2 −2 src/python/setup.py
View
14 src/python/dumbo.py → src/python/oldumbo.py
@@ -79,7 +79,7 @@ def run(mapper,reducer=None,combiner=None,
if newopts.has_key(key): delindexes.append(index)
for delindex in reversed(delindexes): del opts[delindex]
opts += newopts.iteritems()
- retval = execute("python -m dumbo start '%s'" % sys.argv[0],opts,printcmd=False)
+ retval = execute("python -m oldumbo start '%s'" % sys.argv[0],opts,printcmd=False)
if retval == 127:
print >>sys.stderr,'ERROR: Are you sure that "python" is on your path?'
if retval != 0: sys.exit(retval)
@@ -88,7 +88,7 @@ class Job:
def __init__(self): self.iters = []
def additer(self,*args,**kwargs): self.iters.append((args,kwargs))
def run(self):
- scratch = "dumbo-tmp-%i" % random.randint(0,sys.maxint)
+ scratch = "oldumbo-tmp-%i" % random.randint(0,sys.maxint)
for index,(args,kwargs) in enumerate(self.iters):
newopts = {}
if index != 0:
@@ -151,7 +151,7 @@ def configopts(section,prog,opts=[]):
except KeyError: pass
for key,value in opts: defaults[key] = value
parser = SafeConfigParser(defaults)
- parser.read(["/etc/dumbo.conf",os.environ["HOME"]+"/.dumborc"])
+ parser.read(["/etc/oldumbo.conf",os.environ["HOME"]+"/.oldumborc"])
results,excludes = [],set(defaults.iterkeys())
try:
for key,value in parser.items(section):
@@ -365,15 +365,15 @@ def cat(path,opts):
if __name__ == "__main__":
if len(sys.argv) < 3:
print "Usages:"
- print " python -m dumbo submit <python program> [<options>]"
- print " python -m dumbo start <python program> [<options>]"
- print " python -m dumbo cat <path> [<options>]"
+ print " python -m oldumbo submit <python program> [<options>]"
+ print " python -m oldumbo start <python program> [<options>]"
+ print " python -m oldumbo cat <path> [<options>]"
sys.exit(1)
if sys.argv[1] == "submit": retval = submit(sys.argv[2],parseargs(sys.argv[2:]))
elif sys.argv[1] == "start": retval = start(sys.argv[2],parseargs(sys.argv[2:]))
elif sys.argv[1] == "cat": retval = cat(sys.argv[2],parseargs(sys.argv[2:]))
else:
- print >>sys.stderr,"WARNING: the command 'python -m dumbo <prog>' is " \
+ print >>sys.stderr,"WARNING: the command 'python -m oldumbo <prog>' is " \
"deprecated, use 'python <prog>' instead"
retval = start(sys.argv[1],parseargs(sys.argv[1:])) # for backwards compat
sys.exit(retval)
View
4 src/python/setup.py
@@ -1,8 +1,8 @@
from distutils.core import setup
-setup(name='dumbo',
+setup(name='oldumbo',
version='0.19.4',
- py_modules=['dumbo'],
+ py_modules=['oldumbo'],
author='Klaas Bosteels',
author_email='klaas@last.fm',
license="Apache Software License (ASF)"

0 comments on commit 00d838a

Please sign in to comment.
Something went wrong with that request. Please try again.