blob: 075860c418b42a4207ea9d1d958c2c29e0709968 [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001#!/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#
Brad Bishop6e60e8b2018-02-01 10:27:11 -050016# February 26, 2017 -- Ming Liu <peter.x.liu@external.atlascopco.com>
17# * Updated to support generating manifest for native python3
18
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050019import os
20import sys
21import time
Brad Bishop6e60e8b2018-02-01 10:27:11 -050022import argparse
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050023
24VERSION = "3.5.0"
25
26__author__ = "Michael 'Mickey' Lauer <mlauer@vanille-media.de>"
27__version__ = "20140131"
28
29class MakefileMaker:
30
Brad Bishop6e60e8b2018-02-01 10:27:11 -050031 def __init__( self, outfile, isNative ):
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050032 """initialize"""
33 self.packages = {}
34 self.targetPrefix = "${libdir}/python%s/" % VERSION[:3]
Brad Bishop6e60e8b2018-02-01 10:27:11 -050035 self.isNative = isNative
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050036 self.output = outfile
37 self.out( """
38# WARNING: This file is AUTO GENERATED: Manual edits will be lost next time I regenerate the file.
Brad Bishop6e60e8b2018-02-01 10:27:11 -050039# Generator: '%s%s' Version %s (C) 2002-2010 Michael 'Mickey' Lauer <mlauer@vanille-media.de>
40""" % ( sys.argv[0], ' --native' if isNative else '', __version__ ) )
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050041
42 #
43 # helper functions
44 #
45
46 def out( self, data ):
47 """print a line to the output file"""
48 self.output.write( "%s\n" % data )
49
50 def setPrefix( self, targetPrefix ):
51 """set a file prefix for addPackage files"""
52 self.targetPrefix = targetPrefix
53
54 def doProlog( self ):
55 self.out( """ """ )
56 self.out( "" )
57
58 def addPackage( self, name, description, dependencies, filenames ):
59 """add a package to the Makefile"""
60 if type( filenames ) == type( "" ):
61 filenames = filenames.split()
62 fullFilenames = []
63 for filename in filenames:
64 if filename[0] != "$":
65 fullFilenames.append( "%s%s" % ( self.targetPrefix, filename ) )
Brad Bishop6e60e8b2018-02-01 10:27:11 -050066 fullFilenames.append( "%s%s" % ( self.targetPrefix,
67 self.pycachePath( filename ) ) )
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050068 else:
69 fullFilenames.append( filename )
70 self.packages[name] = description, dependencies, fullFilenames
71
Brad Bishop6e60e8b2018-02-01 10:27:11 -050072 def pycachePath( self, filename ):
73 dirname = os.path.dirname( filename )
74 basename = os.path.basename( filename )
75 if '.' in basename:
76 return os.path.join( dirname, '__pycache__', basename )
77 else:
78 return os.path.join( dirname, basename, '__pycache__' )
79
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050080 def doBody( self ):
81 """generate body of Makefile"""
82
83 global VERSION
84
85 #
Brad Bishop6e60e8b2018-02-01 10:27:11 -050086 # generate rprovides line for native
87 #
88
89 if self.isNative:
90 rprovideLine = 'RPROVIDES+="'
91 for name in sorted(self.packages):
92 rprovideLine += "%s-native " % name.replace( '${PN}', 'python3' )
93 rprovideLine += '"'
94
95 self.out( rprovideLine )
96 self.out( "" )
97 return
98
99 #
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500100 # generate provides line
101 #
102
103 provideLine = 'PROVIDES+="'
104 for name in sorted(self.packages):
105 provideLine += "%s " % name
106 provideLine += '"'
107
108 self.out( provideLine )
109 self.out( "" )
110
111 #
112 # generate package line
113 #
114
115 packageLine = 'PACKAGES="${PN}-dbg '
116 for name in sorted(self.packages):
117 if name.startswith("${PN}-distutils"):
118 if name == "${PN}-distutils":
119 packageLine += "%s-staticdev %s " % (name, name)
120 elif name != '${PN}-dbg':
121 packageLine += "%s " % name
122 packageLine += '${PN}-modules"'
123
124 self.out( packageLine )
125 self.out( "" )
126
127 #
128 # generate package variables
129 #
130
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600131 for name, data in sorted(self.packages.items()):
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500132 desc, deps, files = data
133
134 #
135 # write out the description, revision and dependencies
136 #
137 self.out( 'SUMMARY_%s="%s"' % ( name, desc ) )
138 self.out( 'RDEPENDS_%s="%s"' % ( name, deps ) )
139
140 line = 'FILES_%s="' % name
141
142 #
143 # check which directories to make in the temporary directory
144 #
145
146 dirset = {} # if python had a set-datatype this would be sufficient. for now, we're using a dict instead.
147 for target in files:
148 dirset[os.path.dirname( target )] = True
149
150 #
151 # generate which files to copy for the target (-dfR because whole directories are also allowed)
152 #
153
154 for target in files:
155 line += "%s " % target
156
157 line += '"'
158 self.out( line )
159 self.out( "" )
160
161 self.out( 'SUMMARY_${PN}-modules="All Python modules"' )
162 line = 'RDEPENDS_${PN}-modules="'
163
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600164 for name, data in sorted(self.packages.items()):
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500165 if name not in ['${PN}-dev', '${PN}-distutils-staticdev']:
166 line += "%s " % name
167
168 self.out( "%s \"" % line )
169 self.out( 'ALLOW_EMPTY_${PN}-modules = "1"' )
170
171 def doEpilog( self ):
172 self.out( """""" )
173 self.out( "" )
174
175 def make( self ):
176 self.doProlog()
177 self.doBody()
178 self.doEpilog()
179
180if __name__ == "__main__":
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500181 parser = argparse.ArgumentParser( description='generate python3 manifest' )
182 parser.add_argument( '-n', '--native', help='generate manifest for native python3', action='store_true' )
183 parser.add_argument( 'outfile', metavar='OUTPUT_FILE', nargs='?', default='', help='Output file (defaults to stdout)' )
184 args = parser.parse_args()
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500185
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500186 if args.outfile:
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500187 try:
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500188 os.unlink( args.outfile )
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500189 except Exception:
190 sys.exc_clear()
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500191 outfile = open( args.outfile, "w" )
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500192 else:
193 outfile = sys.stdout
194
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500195 m = MakefileMaker( outfile, args.native )
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500196
197 # Add packages here. Only specify dlopen-style library dependencies here, no ldd-style dependencies!
198 # Parameters: revision, name, description, dependencies, filenames
199 #
200
201 m.addPackage( "${PN}-core", "Python interpreter and core modules", "${PN}-lang ${PN}-re ${PN}-reprlib ${PN}-codecs ${PN}-io ${PN}-math",
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600202 "__future__.* _abcoll.* abc.* ast.* copy.* copyreg.* configparser.* " +
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500203 "genericpath.* getopt.* linecache.* new.* " +
204 "os.* posixpath.* struct.* " +
205 "warnings.* site.* stat.* " +
206 "UserDict.* UserList.* UserString.* " +
207 "lib-dynload/binascii.*.so lib-dynload/_struct.*.so lib-dynload/time.*.so " +
208 "lib-dynload/xreadlines.*.so types.* platform.* ${bindir}/python* " +
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500209 "_weakrefset.* sysconfig.* _sysconfigdata.* " +
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500210 "${includedir}/python${PYTHON_BINABI}/pyconfig*.h " +
211 "${libdir}/python${PYTHON_MAJMIN}/collections " +
212 "${libdir}/python${PYTHON_MAJMIN}/_collections_abc.* " +
213 "${libdir}/python${PYTHON_MAJMIN}/_sitebuiltins.* " +
214 "${libdir}/python${PYTHON_MAJMIN}/sitecustomize.py ")
215
216 m.addPackage( "${PN}-dev", "Python development package", "${PN}-core",
217 "${includedir} " +
218 "${libdir}/lib*${SOLIBSDEV} " +
219 "${libdir}/*.la " +
220 "${libdir}/*.a " +
221 "${libdir}/*.o " +
222 "${libdir}/pkgconfig " +
223 "${base_libdir}/*.a " +
224 "${base_libdir}/*.o " +
225 "${datadir}/aclocal " +
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500226 "${datadir}/pkgconfig " +
227 "config/Makefile ")
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500228
229 m.addPackage( "${PN}-2to3", "Python automated Python 2 to 3 code translator", "${PN}-core",
230 "lib2to3" ) # package
231
232 m.addPackage( "${PN}-idle", "Python Integrated Development Environment", "${PN}-core ${PN}-tkinter",
233 "${bindir}/idle idlelib" ) # package
234
235 m.addPackage( "${PN}-pydoc", "Python interactive help support", "${PN}-core ${PN}-lang ${PN}-stringold ${PN}-re",
236 "${bindir}/pydoc pydoc.* pydoc_data" )
237
238 m.addPackage( "${PN}-smtpd", "Python Simple Mail Transport Daemon", "${PN}-core ${PN}-netserver ${PN}-email ${PN}-mime",
239 "${bindir}/smtpd.* smtpd.*" )
240
241 m.addPackage( "${PN}-audio", "Python Audio Handling", "${PN}-core",
242 "wave.* chunk.* sndhdr.* lib-dynload/ossaudiodev.*.so lib-dynload/audioop.*.so audiodev.* sunaudio.* sunau.* toaiff.*" )
243
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600244 m.addPackage( "${PN}-argparse", "Python command line argument parser", "${PN}-core ${PN}-codecs ${PN}-textutils",
245 "argparse.*" )
246
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500247 m.addPackage( "${PN}-asyncio", "Python Asynchronous I/O, event loop, coroutines and tasks", "${PN}-core",
248 "asyncio" )
249
250 m.addPackage( "${PN}-codecs", "Python codecs, encodings & i18n support", "${PN}-core ${PN}-lang",
251 "codecs.* encodings gettext.* locale.* lib-dynload/_locale.*.so lib-dynload/_codecs* lib-dynload/_multibytecodec.*.so lib-dynload/unicodedata.*.so stringprep.* xdrlib.*" )
252
253 m.addPackage( "${PN}-compile", "Python bytecode compilation support", "${PN}-core",
254 "py_compile.* compileall.*" )
255
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600256 m.addPackage( "${PN}-compression", "Python high-level compression support", "${PN}-core ${PN}-codecs ${PN}-importlib ${PN}-threading ${PN}-shell",
257 "gzip.* zipfile.* tarfile.* lib-dynload/bz2.*.so lib-dynload/zlib.*.so" )
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500258
259 m.addPackage( "${PN}-crypt", "Python basic cryptographic and hashing support", "${PN}-core",
260 "hashlib.* md5.* sha.* lib-dynload/crypt.*.so lib-dynload/_hashlib.*.so lib-dynload/_sha256.*.so lib-dynload/_sha512.*.so" )
261
262 m.addPackage( "${PN}-textutils", "Python option parsing, text wrapping and CSV support", "${PN}-core ${PN}-io ${PN}-re ${PN}-stringold",
263 "lib-dynload/_csv.*.so csv.* optparse.* textwrap.*" )
264
265 m.addPackage( "${PN}-curses", "Python curses support", "${PN}-core",
266 "curses lib-dynload/_curses.*.so lib-dynload/_curses_panel.*.so" ) # directory + low level module
267
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600268 m.addPackage( "${PN}-ctypes", "Python C types support", "${PN}-core ${PN}-subprocess",
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500269 "ctypes lib-dynload/_ctypes.*.so lib-dynload/_ctypes_test.*.so" ) # directory + low level module
270
271 m.addPackage( "${PN}-datetime", "Python calendar and time support", "${PN}-core ${PN}-codecs",
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600272 "_strptime.* calendar.* datetime.* lib-dynload/_datetime.*.so" )
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500273
274 m.addPackage( "${PN}-db", "Python file-based database support", "${PN}-core",
275 "anydbm.* dumbdbm.* whichdb.* dbm lib-dynload/_dbm.*.so" )
276
277 m.addPackage( "${PN}-debugger", "Python debugger", "${PN}-core ${PN}-io ${PN}-lang ${PN}-re ${PN}-stringold ${PN}-shell ${PN}-pprint ${PN}-importlib ${PN}-pkgutil",
278 "bdb.* pdb.*" )
279
280 m.addPackage( "${PN}-difflib", "Python helpers for computing deltas between objects", "${PN}-lang ${PN}-re",
281 "difflib.*" )
282
283 m.addPackage( "${PN}-distutils-staticdev", "Python distribution utilities (static libraries)", "${PN}-distutils",
284 "config/lib*.a" ) # package
285
286 m.addPackage( "${PN}-distutils", "Python Distribution Utilities", "${PN}-core ${PN}-email",
287 "config distutils" ) # package
288
289 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",
290 "doctest.*" )
291
292 m.addPackage( "${PN}-email", "Python email support", "${PN}-core ${PN}-io ${PN}-re ${PN}-mime ${PN}-audio ${PN}-image ${PN}-netclient",
293 "imaplib.* email" ) # package
294
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600295 m.addPackage( "${PN}-enum", "Python support for enumerations", "${PN}-core",
296 "enum.*" )
297
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500298 m.addPackage( "${PN}-fcntl", "Python's fcntl interface", "${PN}-core",
299 "lib-dynload/fcntl.*.so" )
300
301 m.addPackage( "${PN}-html", "Python HTML processing support", "${PN}-core",
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500302 "formatter.* htmlentitydefs.* html htmllib.* markupbase.* sgmllib.* HTMLParser.* " )
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500303
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600304 m.addPackage( "${PN}-importlib", "Python import implementation library", "${PN}-core ${PN}-lang",
Brad Bishop37a0e4d2017-12-04 01:01:44 -0500305 "importlib imp.*" )
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500306
307 m.addPackage( "${PN}-gdbm", "Python GNU database support", "${PN}-core",
308 "lib-dynload/_gdbm.*.so" )
309
310 m.addPackage( "${PN}-image", "Python graphical image handling", "${PN}-core",
311 "colorsys.* imghdr.* lib-dynload/imageop.*.so lib-dynload/rgbimg.*.so" )
312
313 m.addPackage( "${PN}-io", "Python low-level I/O", "${PN}-core ${PN}-math",
314 "lib-dynload/_socket.*.so lib-dynload/_io.*.so lib-dynload/_ssl.*.so lib-dynload/select.*.so lib-dynload/termios.*.so lib-dynload/cStringIO.*.so " +
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500315 "ipaddress.* pipes.* socket.* ssl.* tempfile.* StringIO.* io.* _pyio.*" )
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500316
317 m.addPackage( "${PN}-json", "Python JSON support", "${PN}-core ${PN}-math ${PN}-re",
318 "json lib-dynload/_json.*.so" ) # package
319
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600320 m.addPackage( "${PN}-lang", "Python low-level language support", "${PN}-core ${PN}-importlib",
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500321 "lib-dynload/_bisect.*.so lib-dynload/_collections.*.so lib-dynload/_heapq.*.so lib-dynload/_weakref.*.so lib-dynload/_functools.*.so " +
322 "lib-dynload/array.*.so lib-dynload/itertools.*.so lib-dynload/operator.*.so lib-dynload/parser.*.so " +
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600323 "atexit.* bisect.* code.* codeop.* collections.* _collections_abc.* contextlib.* dis.* functools.* heapq.* inspect.* keyword.* opcode.* operator.* symbol.* repr.* token.* " +
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500324 "tokenize.* traceback.* weakref.*" )
325
326 m.addPackage( "${PN}-logging", "Python logging support", "${PN}-core ${PN}-io ${PN}-lang ${PN}-pickle ${PN}-stringold",
327 "logging" ) # package
328
329 m.addPackage( "${PN}-mailbox", "Python mailbox format support", "${PN}-core ${PN}-mime",
330 "mailbox.*" )
331
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600332 m.addPackage( "${PN}-math", "Python math support", "${PN}-core ${PN}-crypt",
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500333 "lib-dynload/cmath.*.so lib-dynload/math.*.so lib-dynload/_random.*.so random.* sets.*" )
334
335 m.addPackage( "${PN}-mime", "Python MIME handling APIs", "${PN}-core ${PN}-io",
336 "mimetools.* uu.* quopri.* rfc822.* MimeWriter.*" )
337
338 m.addPackage( "${PN}-mmap", "Python memory-mapped file support", "${PN}-core ${PN}-io",
339 "lib-dynload/mmap.*.so " )
340
341 m.addPackage( "${PN}-multiprocessing", "Python multiprocessing support", "${PN}-core ${PN}-io ${PN}-lang ${PN}-pickle ${PN}-threading ${PN}-ctypes ${PN}-mmap",
342 "lib-dynload/_multiprocessing.*.so multiprocessing" ) # package
343
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500344 m.addPackage( "${PN}-netclient", "Python Internet Protocol clients", "${PN}-argparse ${PN}-core ${PN}-crypt ${PN}-datetime ${PN}-io ${PN}-lang ${PN}-logging ${PN}-mime ${PN}-html",
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500345 "*Cookie*.* " +
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500346 "base64.* cookielib.* ftplib.* gopherlib.* hmac.* http* httplib.* mimetypes.* nntplib.* poplib.* smtplib.* telnetlib.* urllib uuid.* rfc822.* mimetools.*" )
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500347
348 m.addPackage( "${PN}-netserver", "Python Internet Protocol servers", "${PN}-core ${PN}-netclient ${PN}-shell ${PN}-threading",
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500349 "cgi.* socketserver.* *HTTPServer.* SocketServer.*" )
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500350
351 m.addPackage( "${PN}-numbers", "Python number APIs", "${PN}-core ${PN}-lang ${PN}-re",
352 "decimal.* fractions.* numbers.*" )
353
354 m.addPackage( "${PN}-pickle", "Python serialisation/persistence support", "${PN}-core ${PN}-codecs ${PN}-io ${PN}-re",
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500355 "_compat_pickle.* pickle.* shelve.* lib-dynload/cPickle.*.so pickletools.*" )
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500356
357 m.addPackage( "${PN}-pkgutil", "Python package extension utility support", "${PN}-core",
358 "pkgutil.*")
359
360 m.addPackage( "${PN}-pprint", "Python pretty-print support", "${PN}-core ${PN}-io",
361 "pprint.*" )
362
363 m.addPackage( "${PN}-profile", "Python basic performance profiling support", "${PN}-core ${PN}-textutils",
364 "profile.* pstats.* cProfile.* lib-dynload/_lsprof.*.so" )
365
366 m.addPackage( "${PN}-re", "Python Regular Expression APIs", "${PN}-core",
367 "re.* sre.* sre_compile.* sre_constants* sre_parse.*" ) # _sre is builtin
368
369 m.addPackage( "${PN}-readline", "Python readline support", "${PN}-core",
370 "lib-dynload/readline.*.so rlcompleter.*" )
371
372 m.addPackage( "${PN}-reprlib", "Python alternate repr() implementation", "${PN}-core",
373 "reprlib.py" )
374
375 m.addPackage( "${PN}-resource", "Python resource control interface", "${PN}-core",
376 "lib-dynload/resource.*.so" )
377
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600378 m.addPackage( "${PN}-selectors", "Python High-level I/O multiplexing", "${PN}-core",
379 "selectors.*" )
380
381 m.addPackage( "${PN}-shell", "Python shell-like functionality", "${PN}-core ${PN}-re ${PN}-compression",
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500382 "cmd.* commands.* dircache.* fnmatch.* glob.* popen2.* shlex.* shutil.*" )
383
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600384 m.addPackage( "${PN}-signal", "Python set handlers for asynchronous events support", "${PN}-core ${PN}-enum",
385 "signal.*" )
386
387 m.addPackage( "${PN}-subprocess", "Python subprocess support", "${PN}-core ${PN}-io ${PN}-re ${PN}-fcntl ${PN}-pickle ${PN}-threading ${PN}-signal ${PN}-selectors",
388 "subprocess.* lib-dynload/_posixsubprocess.*.so" )
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500389
390 m.addPackage( "${PN}-sqlite3", "Python Sqlite3 database support", "${PN}-core ${PN}-datetime ${PN}-lang ${PN}-crypt ${PN}-io ${PN}-threading",
391 "lib-dynload/_sqlite3.*.so sqlite3/dbapi2.* sqlite3/__init__.* sqlite3/dump.*" )
392
393 m.addPackage( "${PN}-sqlite3-tests", "Python Sqlite3 database support tests", "${PN}-core ${PN}-sqlite3",
394 "sqlite3/test" )
395
396 m.addPackage( "${PN}-stringold", "Python string APIs [deprecated]", "${PN}-core ${PN}-re",
397 "lib-dynload/strop.*.so string.* stringold.*" )
398
399 m.addPackage( "${PN}-syslog", "Python syslog interface", "${PN}-core",
400 "lib-dynload/syslog.*.so" )
401
402 m.addPackage( "${PN}-terminal", "Python terminal controlling support", "${PN}-core ${PN}-io",
403 "pty.* tty.*" )
404
405 m.addPackage( "${PN}-tests", "Python tests", "${PN}-core",
406 "test" ) # package
407
408 m.addPackage( "${PN}-threading", "Python threading & synchronization support", "${PN}-core ${PN}-lang",
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600409 "_threading_local.* dummy_thread.* dummy_threading.* mutex.* threading.* queue.*" )
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500410
411 m.addPackage( "${PN}-tkinter", "Python Tcl/Tk bindings", "${PN}-core",
412 "lib-dynload/_tkinter.*.so lib-tk tkinter" ) # package
413
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500414 m.addPackage( "${PN}-typing", "Python typing support", "${PN}-core",
415 "typing.*" )
416
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500417 m.addPackage( "${PN}-unittest", "Python unit testing framework", "${PN}-core ${PN}-stringold ${PN}-lang ${PN}-io ${PN}-difflib ${PN}-pprint ${PN}-shell",
418 "unittest/" )
419
420 m.addPackage( "${PN}-unixadmin", "Python Unix administration support", "${PN}-core",
421 "lib-dynload/nis.*.so lib-dynload/grp.*.so lib-dynload/pwd.*.so getpass.*" )
422
423 m.addPackage( "${PN}-xml", "Python basic XML support", "${PN}-core ${PN}-re",
424 "lib-dynload/_elementtree.*.so lib-dynload/pyexpat.*.so xml xmllib.*" ) # package
425
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500426 m.addPackage( "${PN}-xmlrpc", "Python XML-RPC support", "${PN}-core ${PN}-xml ${PN}-netserver ${PN}-lang ${PN}-pydoc",
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500427 "xmlrpclib.* SimpleXMLRPCServer.* DocXMLRPCServer.* xmlrpc" )
428
429 m.addPackage( "${PN}-mailbox", "Python mailbox format support", "${PN}-core ${PN}-mime",
430 "mailbox.*" )
431
432 m.make()