diff options
Diffstat (limited to 'scripts/contrib/python/generate-manifest-2.7.py')
| -rwxr-xr-x | scripts/contrib/python/generate-manifest-2.7.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/contrib/python/generate-manifest-2.7.py b/scripts/contrib/python/generate-manifest-2.7.py index dce465abff..586b329c19 100755 --- a/scripts/contrib/python/generate-manifest-2.7.py +++ b/scripts/contrib/python/generate-manifest-2.7.py | |||
| @@ -28,6 +28,7 @@ class MakefileMaker: | |||
| 28 | def __init__( self, outfile, isNative ): | 28 | def __init__( self, outfile, isNative ): |
| 29 | """initialize""" | 29 | """initialize""" |
| 30 | self.packages = {} | 30 | self.packages = {} |
| 31 | self.excluded_pkgs = [] | ||
| 31 | self.targetPrefix = "${libdir}/python%s/" % VERSION[:3] | 32 | self.targetPrefix = "${libdir}/python%s/" % VERSION[:3] |
| 32 | self.isNative = isNative | 33 | self.isNative = isNative |
| 33 | self.output = outfile | 34 | self.output = outfile |
| @@ -52,7 +53,7 @@ class MakefileMaker: | |||
| 52 | self.out( """ """ ) | 53 | self.out( """ """ ) |
| 53 | self.out( "" ) | 54 | self.out( "" ) |
| 54 | 55 | ||
| 55 | def addPackage( self, name, description, dependencies, filenames ): | 56 | def addPackage( self, name, description, dependencies, filenames, mod_exclude = False ): |
| 56 | """add a package to the Makefile""" | 57 | """add a package to the Makefile""" |
| 57 | if type( filenames ) == type( "" ): | 58 | if type( filenames ) == type( "" ): |
| 58 | filenames = filenames.split() | 59 | filenames = filenames.split() |
| @@ -62,6 +63,8 @@ class MakefileMaker: | |||
| 62 | fullFilenames.append( "%s%s" % ( self.targetPrefix, filename ) ) | 63 | fullFilenames.append( "%s%s" % ( self.targetPrefix, filename ) ) |
| 63 | else: | 64 | else: |
| 64 | fullFilenames.append( filename ) | 65 | fullFilenames.append( filename ) |
| 66 | if mod_exclude: | ||
| 67 | self.excluded_pkgs.append( name ) | ||
| 65 | self.packages[name] = description, dependencies, fullFilenames | 68 | self.packages[name] = description, dependencies, fullFilenames |
| 66 | 69 | ||
| 67 | def doBody( self ): | 70 | def doBody( self ): |
| @@ -147,7 +150,7 @@ class MakefileMaker: | |||
| 147 | line = 'RDEPENDS_${PN}-modules="' | 150 | line = 'RDEPENDS_${PN}-modules="' |
| 148 | 151 | ||
| 149 | for name, data in sorted(self.packages.items()): | 152 | for name, data in sorted(self.packages.items()): |
| 150 | if name not in ['${PN}-dev', '${PN}-distutils-staticdev']: | 153 | if name not in ['${PN}-dev', '${PN}-distutils-staticdev'] and name not in self.excluded_pkgs: |
| 151 | line += "%s " % name | 154 | line += "%s " % name |
| 152 | 155 | ||
| 153 | self.out( "%s \"" % line ) | 156 | self.out( "%s \"" % line ) |
| @@ -382,7 +385,7 @@ if __name__ == "__main__": | |||
| 382 | "pty.* tty.*" ) | 385 | "pty.* tty.*" ) |
| 383 | 386 | ||
| 384 | m.addPackage( "${PN}-tests", "Python tests", "${PN}-core ${PN}-modules", | 387 | m.addPackage( "${PN}-tests", "Python tests", "${PN}-core ${PN}-modules", |
| 385 | "test" ) # package | 388 | "test", True ) # package |
| 386 | 389 | ||
| 387 | m.addPackage( "${PN}-threading", "Python threading & synchronization support", "${PN}-core ${PN}-lang", | 390 | m.addPackage( "${PN}-threading", "Python threading & synchronization support", "${PN}-core ${PN}-lang", |
| 388 | "_threading_local.* dummy_thread.* dummy_threading.* mutex.* threading.* Queue.*" ) | 391 | "_threading_local.* dummy_thread.* dummy_threading.* mutex.* threading.* Queue.*" ) |
