[oe-commits] Marcin Juszkiewicz : generate-manifest-2.5.py: generate python-modules package

GIT User account git at amethyst.openembedded.net
Fri Dec 5 16:07:21 UTC 2008


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 5f4828fc8d87003c1c8b02475a16285d7da132e9
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=5f4828fc8d87003c1c8b02475a16285d7da132e9

Author: Marcin Juszkiewicz <marcin at buglabs.net>
Date:   Fri Dec  5 17:03:00 2008 +0100

generate-manifest-2.5.py: generate python-modules package

'python-modules' depends on all Python modules to make installation of
whole Python easier

---

 contrib/python/generate-manifest-2.5.py |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/contrib/python/generate-manifest-2.5.py b/contrib/python/generate-manifest-2.5.py
index 8054608..854cd83 100755
--- a/contrib/python/generate-manifest-2.5.py
+++ b/contrib/python/generate-manifest-2.5.py
@@ -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 at 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( "" )





More information about the Openembedded-commits mailing list