Launchpad automatic translations update.
[odoo/odoo.git] / setup.py
index d4fefa4..2e004e7 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -59,6 +59,7 @@ required_modules = [
     ('pydot', 'pydot module'),
     ('pytz', 'Timezone handling library for Python'),
     ('reportlab', 'reportlab module'),
+    ('yaml', 'YAML parser and emitter for Python'),
 ]
 
 def check_modules():
@@ -76,7 +77,7 @@ def check_modules():
 
 def find_addons():
     for root, _, names in os.walk(join('bin', 'addons')):
-        if '__terp__.py' in names:
+        if '__openerp__.py' in names or '__terp__.py' in names:
             yield basename(root), root
     #look for extra modules
     try:
@@ -85,7 +86,12 @@ def find_addons():
             mname = mname.strip()
             if not mname:
                 continue
-            if os.path.exists(join(empath, mname, '__terp__.py')):
+
+            terp = join(empath, mname, '__openerp__.py')
+            if not os.path.exists(terp):
+                terp = join(empath, mname, '__terp__.py')
+
+            if os.path.exists(terp):
                 yield mname, join(empath, mname)
             else:
                 print "Module %s specified, but no valid path." % mname
@@ -174,7 +180,7 @@ options = {
                      "lxml.objectify", "decimal", "xml", "encodings",
                      "dateutil", "wizard", "pychart", "PIL", "pyparsing",
                      "pydot", "asyncore","asynchat", "reportlab", "vobject",
-                     "HTMLParser", "select"],
+                     "HTMLParser", "select", "yaml"],
         "excludes" : ["Tkconstants","Tkinter","tcl"],
     }
 }