generate-manifest-2.5.py: generate python-modules package
authorMarcin Juszkiewicz <marcin@buglabs.net>
Fri, 5 Dec 2008 16:03:00 +0000 (17:03 +0100)
committerMarcin Juszkiewicz <hrw@openembedded.org>
Fri, 5 Dec 2008 16:04:11 +0000 (17:04 +0100)
'python-modules' depends on all Python modules to make installation of
whole Python easier

contrib/python/generate-manifest-2.5.py

index 8054608..854cd83 100755 (executable)
@@ -22,7 +22,7 @@ class MakefileMaker:
         self.packages = {}
         self.targetPrefix = "${libdir}/python%s/" % VERSION[:3]
         self.output = outfile
-        self.out( """ \
+        self.out( """\
 # WARNING: This file is AUTO GENERATED: Manual edits will be lost next time I regenerate the file.
 # Generator: '%s' Version %s (C) 2002-2008 Michael 'Mickey' Lauer <mlauer@vanille-media.de>
 # Visit the Python for Embedded Systems Site => http://www.Vanille.de/projects/python.spy
@@ -80,7 +80,7 @@ class MakefileMaker:
         packageLine = 'PACKAGES="'
         for name in self.packages:
             packageLine += "%s " % name
-        packageLine += '"'
+        packageLine += ' python-modules"'
 
         self.out( packageLine )
         self.out( "" )
@@ -120,6 +120,16 @@ class MakefileMaker:
             self.out( line )
             self.out( "" )
 
+        self.out( 'DESCRIPTION_python-modules="All Python modules"' )
+        line = 'RDEPENDS_python-modules="'
+
+        for name, data in self.packages.iteritems():
+            if name != 'python-core-dbg':
+                line += "%s " % name
+
+        self.out( "%s \"" % line )
+        self.out( 'ALLOW_EMPTY_python-modules = "1"' )
+
     def doEpilog( self ):
         self.out( """""" )
         self.out( "" )