| Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | #!/usr/bin/env python | 
|  | 2 |  | 
|  | 3 | # generate Python Manifest for the OpenEmbedded build system | 
|  | 4 | # (C) 2002-2010 Michael 'Mickey' Lauer <mlauer@vanille-media.de> | 
|  | 5 | # (C) 2007 Jeremy Laine | 
|  | 6 | # licensed under MIT, see COPYING.MIT | 
|  | 7 | # | 
|  | 8 | # June 22, 2011 -- Mark Hatle <mark.hatle@windriver.com> | 
|  | 9 | #  * Updated to no longer generate special -dbg package, instead use the | 
|  | 10 | #    single system -dbg | 
|  | 11 | #  * Update version with ".1" to indicate this change | 
|  | 12 | # | 
|  | 13 | # 2014 Khem Raj <raj.khem@gmail.com> | 
|  | 14 | # Added python3 support | 
|  | 15 | # | 
|  | 16 | import os | 
|  | 17 | import sys | 
|  | 18 | import time | 
|  | 19 |  | 
|  | 20 | VERSION = "3.5.0" | 
|  | 21 |  | 
|  | 22 | __author__ = "Michael 'Mickey' Lauer <mlauer@vanille-media.de>" | 
|  | 23 | __version__ = "20140131" | 
|  | 24 |  | 
|  | 25 | class MakefileMaker: | 
|  | 26 |  | 
|  | 27 | def __init__( self, outfile ): | 
|  | 28 | """initialize""" | 
|  | 29 | self.packages = {} | 
|  | 30 | self.targetPrefix = "${libdir}/python%s/" % VERSION[:3] | 
|  | 31 | self.output = outfile | 
|  | 32 | self.out( """ | 
|  | 33 | # WARNING: This file is AUTO GENERATED: Manual edits will be lost next time I regenerate the file. | 
|  | 34 | # Generator: '%s' Version %s (C) 2002-2010 Michael 'Mickey' Lauer <mlauer@vanille-media.de> | 
|  | 35 | # Visit the Python for Embedded Systems Site => http://www.Vanille.de/projects/python.spy | 
|  | 36 | """ % ( sys.argv[0], __version__ ) ) | 
|  | 37 |  | 
|  | 38 | # | 
|  | 39 | # helper functions | 
|  | 40 | # | 
|  | 41 |  | 
|  | 42 | def out( self, data ): | 
|  | 43 | """print a line to the output file""" | 
|  | 44 | self.output.write( "%s\n" % data ) | 
|  | 45 |  | 
|  | 46 | def setPrefix( self, targetPrefix ): | 
|  | 47 | """set a file prefix for addPackage files""" | 
|  | 48 | self.targetPrefix = targetPrefix | 
|  | 49 |  | 
|  | 50 | def doProlog( self ): | 
|  | 51 | self.out( """ """ ) | 
|  | 52 | self.out( "" ) | 
|  | 53 |  | 
|  | 54 | def addPackage( self, name, description, dependencies, filenames ): | 
|  | 55 | """add a package to the Makefile""" | 
|  | 56 | if type( filenames ) == type( "" ): | 
|  | 57 | filenames = filenames.split() | 
|  | 58 | fullFilenames = [] | 
|  | 59 | for filename in filenames: | 
|  | 60 | if filename[0] != "$": | 
|  | 61 | fullFilenames.append( "%s%s" % ( self.targetPrefix, filename ) ) | 
|  | 62 | else: | 
|  | 63 | fullFilenames.append( filename ) | 
|  | 64 | self.packages[name] = description, dependencies, fullFilenames | 
|  | 65 |  | 
|  | 66 | def doBody( self ): | 
|  | 67 | """generate body of Makefile""" | 
|  | 68 |  | 
|  | 69 | global VERSION | 
|  | 70 |  | 
|  | 71 | # | 
|  | 72 | # generate provides line | 
|  | 73 | # | 
|  | 74 |  | 
|  | 75 | provideLine = 'PROVIDES+="' | 
|  | 76 | for name in sorted(self.packages): | 
|  | 77 | provideLine += "%s " % name | 
|  | 78 | provideLine += '"' | 
|  | 79 |  | 
|  | 80 | self.out( provideLine ) | 
|  | 81 | self.out( "" ) | 
|  | 82 |  | 
|  | 83 | # | 
|  | 84 | # generate package line | 
|  | 85 | # | 
|  | 86 |  | 
|  | 87 | packageLine = 'PACKAGES="${PN}-dbg ' | 
|  | 88 | for name in sorted(self.packages): | 
|  | 89 | if name.startswith("${PN}-distutils"): | 
|  | 90 | if name == "${PN}-distutils": | 
|  | 91 | packageLine += "%s-staticdev %s " % (name, name) | 
|  | 92 | elif name != '${PN}-dbg': | 
|  | 93 | packageLine += "%s " % name | 
|  | 94 | packageLine += '${PN}-modules"' | 
|  | 95 |  | 
|  | 96 | self.out( packageLine ) | 
|  | 97 | self.out( "" ) | 
|  | 98 |  | 
|  | 99 | # | 
|  | 100 | # generate package variables | 
|  | 101 | # | 
|  | 102 |  | 
| Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 103 | for name, data in sorted(self.packages.items()): | 
| Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 104 | desc, deps, files = data | 
|  | 105 |  | 
|  | 106 | # | 
|  | 107 | # write out the description, revision and dependencies | 
|  | 108 | # | 
|  | 109 | self.out( 'SUMMARY_%s="%s"' % ( name, desc ) ) | 
|  | 110 | self.out( 'RDEPENDS_%s="%s"' % ( name, deps ) ) | 
|  | 111 |  | 
|  | 112 | line = 'FILES_%s="' % name | 
|  | 113 |  | 
|  | 114 | # | 
|  | 115 | # check which directories to make in the temporary directory | 
|  | 116 | # | 
|  | 117 |  | 
|  | 118 | dirset = {} # if python had a set-datatype this would be sufficient. for now, we're using a dict instead. | 
|  | 119 | for target in files: | 
|  | 120 | dirset[os.path.dirname( target )] = True | 
|  | 121 |  | 
|  | 122 | # | 
|  | 123 | # generate which files to copy for the target (-dfR because whole directories are also allowed) | 
|  | 124 | # | 
|  | 125 |  | 
|  | 126 | for target in files: | 
|  | 127 | line += "%s " % target | 
|  | 128 |  | 
|  | 129 | line += '"' | 
|  | 130 | self.out( line ) | 
|  | 131 | self.out( "" ) | 
|  | 132 |  | 
|  | 133 | self.out( 'SUMMARY_${PN}-modules="All Python modules"' ) | 
|  | 134 | line = 'RDEPENDS_${PN}-modules="' | 
|  | 135 |  | 
| Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 136 | for name, data in sorted(self.packages.items()): | 
| Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 137 | if name not in ['${PN}-dev', '${PN}-distutils-staticdev']: | 
|  | 138 | line += "%s " % name | 
|  | 139 |  | 
|  | 140 | self.out( "%s \"" % line ) | 
|  | 141 | self.out( 'ALLOW_EMPTY_${PN}-modules = "1"' ) | 
|  | 142 |  | 
|  | 143 | def doEpilog( self ): | 
|  | 144 | self.out( """""" ) | 
|  | 145 | self.out( "" ) | 
|  | 146 |  | 
|  | 147 | def make( self ): | 
|  | 148 | self.doProlog() | 
|  | 149 | self.doBody() | 
|  | 150 | self.doEpilog() | 
|  | 151 |  | 
|  | 152 | if __name__ == "__main__": | 
|  | 153 |  | 
|  | 154 | if len( sys.argv ) > 1: | 
|  | 155 | try: | 
|  | 156 | os.unlink(sys.argv[1]) | 
|  | 157 | except Exception: | 
|  | 158 | sys.exc_clear() | 
| Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 159 | outfile = open( sys.argv[1], "w" ) | 
| Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 160 | else: | 
|  | 161 | outfile = sys.stdout | 
|  | 162 |  | 
|  | 163 | m = MakefileMaker( outfile ) | 
|  | 164 |  | 
|  | 165 | # Add packages here. Only specify dlopen-style library dependencies here, no ldd-style dependencies! | 
|  | 166 | # Parameters: revision, name, description, dependencies, filenames | 
|  | 167 | # | 
|  | 168 |  | 
|  | 169 | m.addPackage( "${PN}-core", "Python interpreter and core modules", "${PN}-lang ${PN}-re ${PN}-reprlib ${PN}-codecs ${PN}-io ${PN}-math", | 
| Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 170 | "__future__.* _abcoll.* abc.* ast.* copy.* copyreg.* configparser.* " + | 
| Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 171 | "genericpath.* getopt.* linecache.* new.* " + | 
|  | 172 | "os.* posixpath.* struct.* " + | 
|  | 173 | "warnings.* site.* stat.* " + | 
|  | 174 | "UserDict.* UserList.* UserString.* " + | 
|  | 175 | "lib-dynload/binascii.*.so lib-dynload/_struct.*.so lib-dynload/time.*.so " + | 
|  | 176 | "lib-dynload/xreadlines.*.so types.* platform.* ${bindir}/python* "  + | 
|  | 177 | "_weakrefset.* sysconfig.* _sysconfigdata.* config/Makefile " + | 
|  | 178 | "${includedir}/python${PYTHON_BINABI}/pyconfig*.h " + | 
|  | 179 | "${libdir}/python${PYTHON_MAJMIN}/collections " + | 
|  | 180 | "${libdir}/python${PYTHON_MAJMIN}/_collections_abc.* " + | 
|  | 181 | "${libdir}/python${PYTHON_MAJMIN}/_sitebuiltins.* " + | 
|  | 182 | "${libdir}/python${PYTHON_MAJMIN}/sitecustomize.py ") | 
|  | 183 |  | 
|  | 184 | m.addPackage( "${PN}-dev", "Python development package", "${PN}-core", | 
|  | 185 | "${includedir} " + | 
|  | 186 | "${libdir}/lib*${SOLIBSDEV} " + | 
|  | 187 | "${libdir}/*.la " + | 
|  | 188 | "${libdir}/*.a " + | 
|  | 189 | "${libdir}/*.o " + | 
|  | 190 | "${libdir}/pkgconfig " + | 
|  | 191 | "${base_libdir}/*.a " + | 
|  | 192 | "${base_libdir}/*.o " + | 
|  | 193 | "${datadir}/aclocal " + | 
|  | 194 | "${datadir}/pkgconfig " ) | 
|  | 195 |  | 
|  | 196 | m.addPackage( "${PN}-2to3", "Python automated Python 2 to 3 code translator", "${PN}-core", | 
|  | 197 | "lib2to3" ) # package | 
|  | 198 |  | 
|  | 199 | m.addPackage( "${PN}-idle", "Python Integrated Development Environment", "${PN}-core ${PN}-tkinter", | 
|  | 200 | "${bindir}/idle idlelib" ) # package | 
|  | 201 |  | 
|  | 202 | m.addPackage( "${PN}-pydoc", "Python interactive help support", "${PN}-core ${PN}-lang ${PN}-stringold ${PN}-re", | 
|  | 203 | "${bindir}/pydoc pydoc.* pydoc_data" ) | 
|  | 204 |  | 
|  | 205 | m.addPackage( "${PN}-smtpd", "Python Simple Mail Transport Daemon", "${PN}-core ${PN}-netserver ${PN}-email ${PN}-mime", | 
|  | 206 | "${bindir}/smtpd.* smtpd.*" ) | 
|  | 207 |  | 
|  | 208 | m.addPackage( "${PN}-audio", "Python Audio Handling", "${PN}-core", | 
|  | 209 | "wave.* chunk.* sndhdr.* lib-dynload/ossaudiodev.*.so lib-dynload/audioop.*.so audiodev.* sunaudio.* sunau.* toaiff.*" ) | 
|  | 210 |  | 
| Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 211 | m.addPackage( "${PN}-argparse", "Python command line argument parser", "${PN}-core ${PN}-codecs ${PN}-textutils", | 
|  | 212 | "argparse.*" ) | 
|  | 213 |  | 
| Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 214 | m.addPackage( "${PN}-asyncio", "Python Asynchronous I/O, event loop, coroutines and tasks", "${PN}-core", | 
|  | 215 | "asyncio" ) | 
|  | 216 |  | 
|  | 217 | m.addPackage( "${PN}-codecs", "Python codecs, encodings & i18n support", "${PN}-core ${PN}-lang", | 
|  | 218 | "codecs.* encodings gettext.* locale.* lib-dynload/_locale.*.so lib-dynload/_codecs* lib-dynload/_multibytecodec.*.so lib-dynload/unicodedata.*.so stringprep.* xdrlib.*" ) | 
|  | 219 |  | 
|  | 220 | m.addPackage( "${PN}-compile", "Python bytecode compilation support", "${PN}-core", | 
|  | 221 | "py_compile.* compileall.*" ) | 
|  | 222 |  | 
| Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 223 | m.addPackage( "${PN}-compression", "Python high-level compression support", "${PN}-core ${PN}-codecs ${PN}-importlib ${PN}-threading ${PN}-shell", | 
|  | 224 | "gzip.* zipfile.* tarfile.* lib-dynload/bz2.*.so lib-dynload/zlib.*.so" ) | 
| Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 225 |  | 
|  | 226 | m.addPackage( "${PN}-crypt", "Python basic cryptographic and hashing support", "${PN}-core", | 
|  | 227 | "hashlib.* md5.* sha.* lib-dynload/crypt.*.so lib-dynload/_hashlib.*.so lib-dynload/_sha256.*.so lib-dynload/_sha512.*.so" ) | 
|  | 228 |  | 
|  | 229 | m.addPackage( "${PN}-textutils", "Python option parsing, text wrapping and CSV support", "${PN}-core ${PN}-io ${PN}-re ${PN}-stringold", | 
|  | 230 | "lib-dynload/_csv.*.so csv.* optparse.* textwrap.*" ) | 
|  | 231 |  | 
|  | 232 | m.addPackage( "${PN}-curses", "Python curses support", "${PN}-core", | 
|  | 233 | "curses lib-dynload/_curses.*.so lib-dynload/_curses_panel.*.so" ) # directory + low level module | 
|  | 234 |  | 
| Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 235 | m.addPackage( "${PN}-ctypes", "Python C types support", "${PN}-core ${PN}-subprocess", | 
| Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 236 | "ctypes lib-dynload/_ctypes.*.so lib-dynload/_ctypes_test.*.so" ) # directory + low level module | 
|  | 237 |  | 
|  | 238 | m.addPackage( "${PN}-datetime", "Python calendar and time support", "${PN}-core ${PN}-codecs", | 
| Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 239 | "_strptime.* calendar.* datetime.* lib-dynload/_datetime.*.so" ) | 
| Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 240 |  | 
|  | 241 | m.addPackage( "${PN}-db", "Python file-based database support", "${PN}-core", | 
|  | 242 | "anydbm.* dumbdbm.* whichdb.* dbm lib-dynload/_dbm.*.so" ) | 
|  | 243 |  | 
|  | 244 | m.addPackage( "${PN}-debugger", "Python debugger", "${PN}-core ${PN}-io ${PN}-lang ${PN}-re ${PN}-stringold ${PN}-shell ${PN}-pprint ${PN}-importlib ${PN}-pkgutil", | 
|  | 245 | "bdb.* pdb.*" ) | 
|  | 246 |  | 
|  | 247 | m.addPackage( "${PN}-difflib", "Python helpers for computing deltas between objects", "${PN}-lang ${PN}-re", | 
|  | 248 | "difflib.*" ) | 
|  | 249 |  | 
|  | 250 | m.addPackage( "${PN}-distutils-staticdev", "Python distribution utilities (static libraries)", "${PN}-distutils", | 
|  | 251 | "config/lib*.a" ) # package | 
|  | 252 |  | 
|  | 253 | m.addPackage( "${PN}-distutils", "Python Distribution Utilities", "${PN}-core ${PN}-email", | 
|  | 254 | "config distutils" ) # package | 
|  | 255 |  | 
|  | 256 | m.addPackage( "${PN}-doctest", "Python framework for running examples in docstrings", "${PN}-core ${PN}-lang ${PN}-io ${PN}-re ${PN}-unittest ${PN}-debugger ${PN}-difflib", | 
|  | 257 | "doctest.*" ) | 
|  | 258 |  | 
|  | 259 | m.addPackage( "${PN}-email", "Python email support", "${PN}-core ${PN}-io ${PN}-re ${PN}-mime ${PN}-audio ${PN}-image ${PN}-netclient", | 
|  | 260 | "imaplib.* email" ) # package | 
|  | 261 |  | 
| Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 262 | m.addPackage( "${PN}-enum", "Python support for enumerations", "${PN}-core", | 
|  | 263 | "enum.*" ) | 
|  | 264 |  | 
| Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 265 | m.addPackage( "${PN}-fcntl", "Python's fcntl interface", "${PN}-core", | 
|  | 266 | "lib-dynload/fcntl.*.so" ) | 
|  | 267 |  | 
|  | 268 | m.addPackage( "${PN}-html", "Python HTML processing support", "${PN}-core", | 
|  | 269 | "formatter.* htmlentitydefs.* htmllib.* markupbase.* sgmllib.* HTMLParser.* " ) | 
|  | 270 |  | 
| Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 271 | m.addPackage( "${PN}-importlib", "Python import implementation library", "${PN}-core ${PN}-lang", | 
| Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 272 | "importlib" ) | 
|  | 273 |  | 
|  | 274 | m.addPackage( "${PN}-gdbm", "Python GNU database support", "${PN}-core", | 
|  | 275 | "lib-dynload/_gdbm.*.so" ) | 
|  | 276 |  | 
|  | 277 | m.addPackage( "${PN}-image", "Python graphical image handling", "${PN}-core", | 
|  | 278 | "colorsys.* imghdr.* lib-dynload/imageop.*.so lib-dynload/rgbimg.*.so" ) | 
|  | 279 |  | 
|  | 280 | m.addPackage( "${PN}-io", "Python low-level I/O", "${PN}-core ${PN}-math", | 
|  | 281 | "lib-dynload/_socket.*.so lib-dynload/_io.*.so lib-dynload/_ssl.*.so lib-dynload/select.*.so lib-dynload/termios.*.so lib-dynload/cStringIO.*.so " + | 
|  | 282 | "pipes.* socket.* ssl.* tempfile.* StringIO.* io.* _pyio.*" ) | 
|  | 283 |  | 
|  | 284 | m.addPackage( "${PN}-json", "Python JSON support", "${PN}-core ${PN}-math ${PN}-re", | 
|  | 285 | "json lib-dynload/_json.*.so" ) # package | 
|  | 286 |  | 
| Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 287 | m.addPackage( "${PN}-lang", "Python low-level language support", "${PN}-core ${PN}-importlib", | 
| Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 288 | "lib-dynload/_bisect.*.so lib-dynload/_collections.*.so lib-dynload/_heapq.*.so lib-dynload/_weakref.*.so lib-dynload/_functools.*.so " + | 
|  | 289 | "lib-dynload/array.*.so lib-dynload/itertools.*.so lib-dynload/operator.*.so lib-dynload/parser.*.so " + | 
| Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 290 | "atexit.* bisect.* code.* codeop.* collections.* _collections_abc.* contextlib.* dis.* functools.* heapq.* inspect.* keyword.* opcode.* operator.* symbol.* repr.* token.* " + | 
| Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 291 | "tokenize.* traceback.* weakref.*" ) | 
|  | 292 |  | 
|  | 293 | m.addPackage( "${PN}-logging", "Python logging support", "${PN}-core ${PN}-io ${PN}-lang ${PN}-pickle ${PN}-stringold", | 
|  | 294 | "logging" ) # package | 
|  | 295 |  | 
|  | 296 | m.addPackage( "${PN}-mailbox", "Python mailbox format support", "${PN}-core ${PN}-mime", | 
|  | 297 | "mailbox.*" ) | 
|  | 298 |  | 
| Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 299 | m.addPackage( "${PN}-math", "Python math support", "${PN}-core ${PN}-crypt", | 
| Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 300 | "lib-dynload/cmath.*.so lib-dynload/math.*.so lib-dynload/_random.*.so random.* sets.*" ) | 
|  | 301 |  | 
|  | 302 | m.addPackage( "${PN}-mime", "Python MIME handling APIs", "${PN}-core ${PN}-io", | 
|  | 303 | "mimetools.* uu.* quopri.* rfc822.* MimeWriter.*" ) | 
|  | 304 |  | 
|  | 305 | m.addPackage( "${PN}-mmap", "Python memory-mapped file support", "${PN}-core ${PN}-io", | 
|  | 306 | "lib-dynload/mmap.*.so " ) | 
|  | 307 |  | 
|  | 308 | m.addPackage( "${PN}-multiprocessing", "Python multiprocessing support", "${PN}-core ${PN}-io ${PN}-lang ${PN}-pickle ${PN}-threading ${PN}-ctypes ${PN}-mmap", | 
|  | 309 | "lib-dynload/_multiprocessing.*.so multiprocessing" ) # package | 
|  | 310 |  | 
|  | 311 | m.addPackage( "${PN}-netclient", "Python Internet Protocol clients", "${PN}-core ${PN}-crypt ${PN}-datetime ${PN}-io ${PN}-lang ${PN}-logging ${PN}-mime", | 
|  | 312 | "*Cookie*.* " + | 
|  | 313 | "base64.* cookielib.* ftplib.* gopherlib.* hmac.* httplib.* mimetypes.* nntplib.* poplib.* smtplib.* telnetlib.* urllib  uuid.* rfc822.* mimetools.*" ) | 
|  | 314 |  | 
|  | 315 | m.addPackage( "${PN}-netserver", "Python Internet Protocol servers", "${PN}-core ${PN}-netclient ${PN}-shell ${PN}-threading", | 
|  | 316 | "cgi.* *HTTPServer.* SocketServer.*" ) | 
|  | 317 |  | 
|  | 318 | m.addPackage( "${PN}-numbers", "Python number APIs", "${PN}-core ${PN}-lang ${PN}-re", | 
|  | 319 | "decimal.* fractions.* numbers.*" ) | 
|  | 320 |  | 
|  | 321 | m.addPackage( "${PN}-pickle", "Python serialisation/persistence support", "${PN}-core ${PN}-codecs ${PN}-io ${PN}-re", | 
|  | 322 | "pickle.* shelve.* lib-dynload/cPickle.*.so pickletools.*" ) | 
|  | 323 |  | 
|  | 324 | m.addPackage( "${PN}-pkgutil", "Python package extension utility support", "${PN}-core", | 
|  | 325 | "pkgutil.*") | 
|  | 326 |  | 
|  | 327 | m.addPackage( "${PN}-pprint", "Python pretty-print support", "${PN}-core ${PN}-io", | 
|  | 328 | "pprint.*" ) | 
|  | 329 |  | 
|  | 330 | m.addPackage( "${PN}-profile", "Python basic performance profiling support", "${PN}-core ${PN}-textutils", | 
|  | 331 | "profile.* pstats.* cProfile.* lib-dynload/_lsprof.*.so" ) | 
|  | 332 |  | 
|  | 333 | m.addPackage( "${PN}-re", "Python Regular Expression APIs", "${PN}-core", | 
|  | 334 | "re.* sre.* sre_compile.* sre_constants* sre_parse.*" ) # _sre is builtin | 
|  | 335 |  | 
|  | 336 | m.addPackage( "${PN}-readline", "Python readline support", "${PN}-core", | 
|  | 337 | "lib-dynload/readline.*.so rlcompleter.*" ) | 
|  | 338 |  | 
|  | 339 | m.addPackage( "${PN}-reprlib", "Python alternate repr() implementation", "${PN}-core", | 
|  | 340 | "reprlib.py" ) | 
|  | 341 |  | 
|  | 342 | m.addPackage( "${PN}-resource", "Python resource control interface", "${PN}-core", | 
|  | 343 | "lib-dynload/resource.*.so" ) | 
|  | 344 |  | 
| Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 345 | m.addPackage( "${PN}-selectors", "Python High-level I/O multiplexing", "${PN}-core", | 
|  | 346 | "selectors.*" ) | 
|  | 347 |  | 
|  | 348 | m.addPackage( "${PN}-shell", "Python shell-like functionality", "${PN}-core ${PN}-re ${PN}-compression", | 
| Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 349 | "cmd.* commands.* dircache.* fnmatch.* glob.* popen2.* shlex.* shutil.*" ) | 
|  | 350 |  | 
| Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 351 | m.addPackage( "${PN}-signal", "Python set handlers for asynchronous events support", "${PN}-core ${PN}-enum", | 
|  | 352 | "signal.*" ) | 
|  | 353 |  | 
|  | 354 | m.addPackage( "${PN}-subprocess", "Python subprocess support", "${PN}-core ${PN}-io ${PN}-re ${PN}-fcntl ${PN}-pickle ${PN}-threading ${PN}-signal ${PN}-selectors", | 
|  | 355 | "subprocess.* lib-dynload/_posixsubprocess.*.so" ) | 
| Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 356 |  | 
|  | 357 | m.addPackage( "${PN}-sqlite3", "Python Sqlite3 database support", "${PN}-core ${PN}-datetime ${PN}-lang ${PN}-crypt ${PN}-io ${PN}-threading", | 
|  | 358 | "lib-dynload/_sqlite3.*.so sqlite3/dbapi2.* sqlite3/__init__.* sqlite3/dump.*" ) | 
|  | 359 |  | 
|  | 360 | m.addPackage( "${PN}-sqlite3-tests", "Python Sqlite3 database support tests", "${PN}-core ${PN}-sqlite3", | 
|  | 361 | "sqlite3/test" ) | 
|  | 362 |  | 
|  | 363 | m.addPackage( "${PN}-stringold", "Python string APIs [deprecated]", "${PN}-core ${PN}-re", | 
|  | 364 | "lib-dynload/strop.*.so string.* stringold.*" ) | 
|  | 365 |  | 
|  | 366 | m.addPackage( "${PN}-syslog", "Python syslog interface", "${PN}-core", | 
|  | 367 | "lib-dynload/syslog.*.so" ) | 
|  | 368 |  | 
|  | 369 | m.addPackage( "${PN}-terminal", "Python terminal controlling support", "${PN}-core ${PN}-io", | 
|  | 370 | "pty.* tty.*" ) | 
|  | 371 |  | 
|  | 372 | m.addPackage( "${PN}-tests", "Python tests", "${PN}-core", | 
|  | 373 | "test" ) # package | 
|  | 374 |  | 
|  | 375 | m.addPackage( "${PN}-threading", "Python threading & synchronization support", "${PN}-core ${PN}-lang", | 
| Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 376 | "_threading_local.* dummy_thread.* dummy_threading.* mutex.* threading.* queue.*" ) | 
| Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 377 |  | 
|  | 378 | m.addPackage( "${PN}-tkinter", "Python Tcl/Tk bindings", "${PN}-core", | 
|  | 379 | "lib-dynload/_tkinter.*.so lib-tk tkinter" ) # package | 
|  | 380 |  | 
|  | 381 | m.addPackage( "${PN}-unittest", "Python unit testing framework", "${PN}-core ${PN}-stringold ${PN}-lang ${PN}-io ${PN}-difflib ${PN}-pprint ${PN}-shell", | 
|  | 382 | "unittest/" ) | 
|  | 383 |  | 
|  | 384 | m.addPackage( "${PN}-unixadmin", "Python Unix administration support", "${PN}-core", | 
|  | 385 | "lib-dynload/nis.*.so lib-dynload/grp.*.so lib-dynload/pwd.*.so getpass.*" ) | 
|  | 386 |  | 
|  | 387 | m.addPackage( "${PN}-xml", "Python basic XML support", "${PN}-core ${PN}-re", | 
|  | 388 | "lib-dynload/_elementtree.*.so lib-dynload/pyexpat.*.so xml xmllib.*" ) # package | 
|  | 389 |  | 
|  | 390 | m.addPackage( "${PN}-xmlrpc", "Python XML-RPC support", "${PN}-core ${PN}-xml ${PN}-netserver ${PN}-lang", | 
|  | 391 | "xmlrpclib.* SimpleXMLRPCServer.* DocXMLRPCServer.* xmlrpc" ) | 
|  | 392 |  | 
|  | 393 | m.addPackage( "${PN}-mailbox", "Python mailbox format support", "${PN}-core ${PN}-mime", | 
|  | 394 | "mailbox.*" ) | 
|  | 395 |  | 
|  | 396 | m.make() |