2012-10-08 20:51:11 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
# generate Python Manifest for the OpenEmbedded build system
|
|
|
|
# (C) 2002-2010 Michael 'Mickey' Lauer <mlauer@vanille-media.de>
|
|
|
|
# (C) 2007 Jeremy Laine
|
|
|
|
# licensed under MIT, see COPYING.MIT
|
|
|
|
#
|
|
|
|
# June 22, 2011 -- Mark Hatle <mark.hatle@windriver.com>
|
|
|
|
# * Updated to no longer generate special -dbg package, instead use the
|
|
|
|
# single system -dbg
|
|
|
|
# * Update version with ".1" to indicate this change
|
|
|
|
#
|
|
|
|
# 2014 Khem Raj <raj.khem@gmail.com>
|
|
|
|
# Added python3 support
|
|
|
|
#
|
2017-02-26 07:44:45 +00:00
|
|
|
# February 26, 2017 -- Ming Liu <peter.x.liu@external.atlascopco.com>
|
|
|
|
# * Updated to support generating manifest for native python3
|
|
|
|
|
2012-10-08 20:51:11 +00:00
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
import time
|
2017-02-26 07:44:45 +00:00
|
|
|
import argparse
|
2012-10-08 20:51:11 +00:00
|
|
|
|
2015-11-10 23:34:48 +00:00
|
|
|
VERSION = "3.5.0"
|
2012-10-08 20:51:11 +00:00
|
|
|
|
|
|
|
__author__ = "Michael 'Mickey' Lauer <mlauer@vanille-media.de>"
|
|
|
|
__version__ = "20140131"
|
|
|
|
|
|
|
|
class MakefileMaker:
|
|
|
|
|
2017-02-26 07:44:45 +00:00
|
|
|
def __init__( self, outfile, isNative ):
|
2012-10-08 20:51:11 +00:00
|
|
|
"""initialize"""
|
|
|
|
self.packages = {}
|
|
|
|
self.targetPrefix = "${libdir}/python%s/" % VERSION[:3]
|
2017-02-26 07:44:45 +00:00
|
|
|
self.isNative = isNative
|
2012-10-08 20:51:11 +00:00
|
|
|
self.output = outfile
|
|
|
|
self.out( """
|
|
|
|
# WARNING: This file is AUTO GENERATED: Manual edits will be lost next time I regenerate the file.
|
2017-02-26 07:44:45 +00:00
|
|
|
# Generator: '%s%s' Version %s (C) 2002-2010 Michael 'Mickey' Lauer <mlauer@vanille-media.de>
|
|
|
|
""" % ( sys.argv[0], ' --native' if isNative else '', __version__ ) )
|
2012-10-08 20:51:11 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# helper functions
|
|
|
|
#
|
|
|
|
|
|
|
|
def out( self, data ):
|
|
|
|
"""print a line to the output file"""
|
|
|
|
self.output.write( "%s\n" % data )
|
|
|
|
|
|
|
|
def setPrefix( self, targetPrefix ):
|
|
|
|
"""set a file prefix for addPackage files"""
|
|
|
|
self.targetPrefix = targetPrefix
|
|
|
|
|
|
|
|
def doProlog( self ):
|
|
|
|
self.out( """ """ )
|
|
|
|
self.out( "" )
|
|
|
|
|
|
|
|
def addPackage( self, name, description, dependencies, filenames ):
|
|
|
|
"""add a package to the Makefile"""
|
|
|
|
if type( filenames ) == type( "" ):
|
|
|
|
filenames = filenames.split()
|
|
|
|
fullFilenames = []
|
|
|
|
for filename in filenames:
|
|
|
|
if filename[0] != "$":
|
|
|
|
fullFilenames.append( "%s%s" % ( self.targetPrefix, filename ) )
|
2016-10-25 17:20:17 +00:00
|
|
|
fullFilenames.append( "%s%s" % ( self.targetPrefix,
|
|
|
|
self.pycachePath( filename ) ) )
|
2012-10-08 20:51:11 +00:00
|
|
|
else:
|
|
|
|
fullFilenames.append( filename )
|
|
|
|
self.packages[name] = description, dependencies, fullFilenames
|
|
|
|
|
2016-10-25 17:20:17 +00:00
|
|
|
def pycachePath( self, filename ):
|
|
|
|
dirname = os.path.dirname( filename )
|
|
|
|
basename = os.path.basename( filename )
|
|
|
|
if '.' in basename:
|
|
|
|
return os.path.join( dirname, '__pycache__', basename )
|
|
|
|
else:
|
|
|
|
return os.path.join( dirname, basename, '__pycache__' )
|
|
|
|
|
2012-10-08 20:51:11 +00:00
|
|
|
def doBody( self ):
|
|
|
|
"""generate body of Makefile"""
|
|
|
|
|
|
|
|
global VERSION
|
|
|
|
|
2017-02-26 07:44:45 +00:00
|
|
|
#
|
|
|
|
# generate rprovides line for native
|
|
|
|
#
|
|
|
|
|
|
|
|
if self.isNative:
|
|
|
|
rprovideLine = 'RPROVIDES+="'
|
|
|
|
for name in sorted(self.packages):
|
|
|
|
rprovideLine += "%s-native " % name.replace( '${PN}', 'python3' )
|
|
|
|
rprovideLine += '"'
|
|
|
|
|
|
|
|
self.out( rprovideLine )
|
|
|
|
self.out( "" )
|
|
|
|
return
|
|
|
|
|
2012-10-08 20:51:11 +00:00
|
|
|
#
|
|
|
|
# generate provides line
|
|
|
|
#
|
|
|
|
|
|
|
|
provideLine = 'PROVIDES+="'
|
|
|
|
for name in sorted(self.packages):
|
|
|
|
provideLine += "%s " % name
|
|
|
|
provideLine += '"'
|
|
|
|
|
|
|
|
self.out( provideLine )
|
|
|
|
self.out( "" )
|
|
|
|
|
|
|
|
#
|
|
|
|
# generate package line
|
|
|
|
#
|
|
|
|
|
|
|
|
packageLine = 'PACKAGES="${PN}-dbg '
|
|
|
|
for name in sorted(self.packages):
|
|
|
|
if name.startswith("${PN}-distutils"):
|
|
|
|
if name == "${PN}-distutils":
|
|
|
|
packageLine += "%s-staticdev %s " % (name, name)
|
|
|
|
elif name != '${PN}-dbg':
|
|
|
|
packageLine += "%s " % name
|
|
|
|
packageLine += '${PN}-modules"'
|
|
|
|
|
|
|
|
self.out( packageLine )
|
|
|
|
self.out( "" )
|
|
|
|
|
|
|
|
#
|
|
|
|
# generate package variables
|
|
|
|
#
|
|
|
|
|
2016-05-18 18:39:44 +00:00
|
|
|
for name, data in sorted(self.packages.items()):
|
2012-10-08 20:51:11 +00:00
|
|
|
desc, deps, files = data
|
|
|
|
|
|
|
|
#
|
|
|
|
# write out the description, revision and dependencies
|
|
|
|
#
|
2014-03-20 19:24:34 +00:00
|
|
|
self.out( 'SUMMARY_%s="%s"' % ( name, desc ) )
|
2012-10-08 20:51:11 +00:00
|
|
|
self.out( 'RDEPENDS_%s="%s"' % ( name, deps ) )
|
|
|
|
|
|
|
|
line = 'FILES_%s="' % name
|
|
|
|
|
|
|
|
#
|
|
|
|
# check which directories to make in the temporary directory
|
|
|
|
#
|
|
|
|
|
|
|
|
dirset = {} # if python had a set-datatype this would be sufficient. for now, we're using a dict instead.
|
|
|
|
for target in files:
|
|
|
|
dirset[os.path.dirname( target )] = True
|
|
|
|
|
|
|
|
#
|
|
|
|
# generate which files to copy for the target (-dfR because whole directories are also allowed)
|
|
|
|
#
|
|
|
|
|
|
|
|
for target in files:
|
|
|
|
line += "%s " % target
|
|
|
|
|
|
|
|
line += '"'
|
|
|
|
self.out( line )
|
|
|
|
self.out( "" )
|
|
|
|
|
2014-03-20 19:24:34 +00:00
|
|
|
self.out( 'SUMMARY_${PN}-modules="All Python modules"' )
|
2012-10-08 20:51:11 +00:00
|
|
|
line = 'RDEPENDS_${PN}-modules="'
|
|
|
|
|
2016-05-18 18:39:44 +00:00
|
|
|
for name, data in sorted(self.packages.items()):
|
2012-10-08 20:51:11 +00:00
|
|
|
if name not in ['${PN}-dev', '${PN}-distutils-staticdev']:
|
|
|
|
line += "%s " % name
|
|
|
|
|
|
|
|
self.out( "%s \"" % line )
|
|
|
|
self.out( 'ALLOW_EMPTY_${PN}-modules = "1"' )
|
|
|
|
|
|
|
|
def doEpilog( self ):
|
|
|
|
self.out( """""" )
|
|
|
|
self.out( "" )
|
|
|
|
|
|
|
|
def make( self ):
|
|
|
|
self.doProlog()
|
|
|
|
self.doBody()
|
|
|
|
self.doEpilog()
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2017-02-26 07:44:45 +00:00
|
|
|
parser = argparse.ArgumentParser( description='generate python3 manifest' )
|
|
|
|
parser.add_argument( '-n', '--native', help='generate manifest for native python3', action='store_true' )
|
|
|
|
parser.add_argument( 'outfile', metavar='OUTPUT_FILE', nargs='?', default='', help='Output file (defaults to stdout)' )
|
|
|
|
args = parser.parse_args()
|
2012-10-08 20:51:11 +00:00
|
|
|
|
2017-02-26 07:44:45 +00:00
|
|
|
if args.outfile:
|
2012-10-08 20:51:11 +00:00
|
|
|
try:
|
2017-02-26 07:44:45 +00:00
|
|
|
os.unlink( args.outfile )
|
2012-10-08 20:51:11 +00:00
|
|
|
except Exception:
|
|
|
|
sys.exc_clear()
|
2017-02-26 07:44:45 +00:00
|
|
|
outfile = open( args.outfile, "w" )
|
2012-10-08 20:51:11 +00:00
|
|
|
else:
|
|
|
|
outfile = sys.stdout
|
|
|
|
|
2017-02-26 07:44:45 +00:00
|
|
|
m = MakefileMaker( outfile, args.native )
|
2012-10-08 20:51:11 +00:00
|
|
|
|
|
|
|
# Add packages here. Only specify dlopen-style library dependencies here, no ldd-style dependencies!
|
|
|
|
# Parameters: revision, name, description, dependencies, filenames
|
|
|
|
#
|
|
|
|
|
2014-12-04 19:09:35 +00:00
|
|
|
m.addPackage( "${PN}-core", "Python interpreter and core modules", "${PN}-lang ${PN}-re ${PN}-reprlib ${PN}-codecs ${PN}-io ${PN}-math",
|
2016-05-19 09:28:12 +00:00
|
|
|
"__future__.* _abcoll.* abc.* ast.* copy.* copyreg.* configparser.* " +
|
2012-10-08 20:51:11 +00:00
|
|
|
"genericpath.* getopt.* linecache.* new.* " +
|
|
|
|
"os.* posixpath.* struct.* " +
|
|
|
|
"warnings.* site.* stat.* " +
|
|
|
|
"UserDict.* UserList.* UserString.* " +
|
|
|
|
"lib-dynload/binascii.*.so lib-dynload/_struct.*.so lib-dynload/time.*.so " +
|
|
|
|
"lib-dynload/xreadlines.*.so types.* platform.* ${bindir}/python* " +
|
2017-04-10 09:08:19 +00:00
|
|
|
"_weakrefset.* sysconfig.* _sysconfigdata.* " +
|
2015-05-14 16:13:40 +00:00
|
|
|
"${includedir}/python${PYTHON_BINABI}/pyconfig*.h " +
|
2012-10-08 20:51:11 +00:00
|
|
|
"${libdir}/python${PYTHON_MAJMIN}/collections " +
|
python3: Upgrade from 3.3.3 to 3.4.2
Modifies:
python3-native_3.3.3.bb -> python3-native_3.4.2.bb: Updates checksums, version, patches
and SRC_URIs to use xz format, LICENSE did not change, dates were updated, adds fix for
ctypes/libffi needed for pip <- required since Python 3.4 (see PEP #453).
python3_3.3.3.bb -> python3_3.4.2.bb: Updates checksums, version, patches and SRC_URIs
to use xz format, adds fix for ctypes/libffi, fixes oe_multilib_header() call,
adds python3-core as RDEPENDS to python3-misc to avoid QA issue.
generate-manifest-3.4.py - > generate-manifest-3.4.py: fixes reprlib,
adds _sitebuiltins and _collections_abc <- formerly part of collections, separated since 3.4
python-3.3-manifest.inc -> python-3.4-manifest.inc
Rebases:
12-distutils-prefix-is-inside-staging-area.patch
python-3.3-multilib.patch
04-default-is-optimized.patch
avoid-ncursesw-include-path.patch
Deletes (fixed upstream):
fix-ast.h-dependency.patch
python3-fix-build-error-with-Readline-6.3.patch
06-ctypes-libffi-fix-configure.patch
remove_sqlite_rpath.patch
[YOCTO #6857]
(From OE-Core rev: 45290ff4d1902bd0ab5377568f969fbb660c0c87)
Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-02-27 18:49:22 +00:00
|
|
|
"${libdir}/python${PYTHON_MAJMIN}/_collections_abc.* " +
|
|
|
|
"${libdir}/python${PYTHON_MAJMIN}/_sitebuiltins.* " +
|
2012-10-08 20:51:11 +00:00
|
|
|
"${libdir}/python${PYTHON_MAJMIN}/sitecustomize.py ")
|
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-dev", "Python development package", "${PN}-core",
|
2012-10-08 20:51:11 +00:00
|
|
|
"${includedir} " +
|
|
|
|
"${libdir}/lib*${SOLIBSDEV} " +
|
|
|
|
"${libdir}/*.la " +
|
|
|
|
"${libdir}/*.a " +
|
|
|
|
"${libdir}/*.o " +
|
|
|
|
"${libdir}/pkgconfig " +
|
|
|
|
"${base_libdir}/*.a " +
|
|
|
|
"${base_libdir}/*.o " +
|
|
|
|
"${datadir}/aclocal " +
|
2017-04-10 09:08:19 +00:00
|
|
|
"${datadir}/pkgconfig " +
|
|
|
|
"config/Makefile ")
|
2012-10-08 20:51:11 +00:00
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-2to3", "Python automated Python 2 to 3 code translator", "${PN}-core",
|
2015-07-28 14:58:37 +00:00
|
|
|
"lib2to3" ) # package
|
2012-10-08 20:51:11 +00:00
|
|
|
|
|
|
|
m.addPackage( "${PN}-idle", "Python Integrated Development Environment", "${PN}-core ${PN}-tkinter",
|
|
|
|
"${bindir}/idle idlelib" ) # package
|
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-pydoc", "Python interactive help support", "${PN}-core ${PN}-lang ${PN}-stringold ${PN}-re",
|
2012-10-08 20:51:11 +00:00
|
|
|
"${bindir}/pydoc pydoc.* pydoc_data" )
|
|
|
|
|
|
|
|
m.addPackage( "${PN}-smtpd", "Python Simple Mail Transport Daemon", "${PN}-core ${PN}-netserver ${PN}-email ${PN}-mime",
|
|
|
|
"${bindir}/smtpd.* smtpd.*" )
|
|
|
|
|
|
|
|
m.addPackage( "${PN}-audio", "Python Audio Handling", "${PN}-core",
|
|
|
|
"wave.* chunk.* sndhdr.* lib-dynload/ossaudiodev.*.so lib-dynload/audioop.*.so audiodev.* sunaudio.* sunau.* toaiff.*" )
|
|
|
|
|
2016-08-23 21:23:59 +00:00
|
|
|
m.addPackage( "${PN}-argparse", "Python command line argument parser", "${PN}-core ${PN}-codecs ${PN}-textutils",
|
|
|
|
"argparse.*" )
|
|
|
|
|
2015-05-12 15:09:50 +00:00
|
|
|
m.addPackage( "${PN}-asyncio", "Python Asynchronous I/O, event loop, coroutines and tasks", "${PN}-core",
|
|
|
|
"asyncio" )
|
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-codecs", "Python codecs, encodings & i18n support", "${PN}-core ${PN}-lang",
|
2012-10-08 20:51:11 +00:00
|
|
|
"codecs.* encodings gettext.* locale.* lib-dynload/_locale.*.so lib-dynload/_codecs* lib-dynload/_multibytecodec.*.so lib-dynload/unicodedata.*.so stringprep.* xdrlib.*" )
|
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-compile", "Python bytecode compilation support", "${PN}-core",
|
2012-10-08 20:51:11 +00:00
|
|
|
"py_compile.* compileall.*" )
|
|
|
|
|
2016-07-11 18:05:22 +00:00
|
|
|
m.addPackage( "${PN}-compression", "Python high-level compression support", "${PN}-core ${PN}-codecs ${PN}-importlib ${PN}-threading ${PN}-shell",
|
2016-08-12 21:03:33 +00:00
|
|
|
"gzip.* zipfile.* tarfile.* lib-dynload/bz2.*.so lib-dynload/zlib.*.so" )
|
2012-10-08 20:51:11 +00:00
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-crypt", "Python basic cryptographic and hashing support", "${PN}-core",
|
2012-10-08 20:51:11 +00:00
|
|
|
"hashlib.* md5.* sha.* lib-dynload/crypt.*.so lib-dynload/_hashlib.*.so lib-dynload/_sha256.*.so lib-dynload/_sha512.*.so" )
|
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-textutils", "Python option parsing, text wrapping and CSV support", "${PN}-core ${PN}-io ${PN}-re ${PN}-stringold",
|
2012-10-08 20:51:11 +00:00
|
|
|
"lib-dynload/_csv.*.so csv.* optparse.* textwrap.*" )
|
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-curses", "Python curses support", "${PN}-core",
|
2012-10-08 20:51:11 +00:00
|
|
|
"curses lib-dynload/_curses.*.so lib-dynload/_curses_panel.*.so" ) # directory + low level module
|
|
|
|
|
2016-08-03 16:32:39 +00:00
|
|
|
m.addPackage( "${PN}-ctypes", "Python C types support", "${PN}-core ${PN}-subprocess",
|
2012-10-08 20:51:11 +00:00
|
|
|
"ctypes lib-dynload/_ctypes.*.so lib-dynload/_ctypes_test.*.so" ) # directory + low level module
|
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-datetime", "Python calendar and time support", "${PN}-core ${PN}-codecs",
|
2016-08-12 21:03:33 +00:00
|
|
|
"_strptime.* calendar.* datetime.* lib-dynload/_datetime.*.so" )
|
2012-10-08 20:51:11 +00:00
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-db", "Python file-based database support", "${PN}-core",
|
2012-10-08 20:51:11 +00:00
|
|
|
"anydbm.* dumbdbm.* whichdb.* dbm lib-dynload/_dbm.*.so" )
|
|
|
|
|
2015-09-18 21:27:54 +00:00
|
|
|
m.addPackage( "${PN}-debugger", "Python debugger", "${PN}-core ${PN}-io ${PN}-lang ${PN}-re ${PN}-stringold ${PN}-shell ${PN}-pprint ${PN}-importlib ${PN}-pkgutil",
|
2012-10-08 20:51:11 +00:00
|
|
|
"bdb.* pdb.*" )
|
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-difflib", "Python helpers for computing deltas between objects", "${PN}-lang ${PN}-re",
|
2012-10-08 20:51:11 +00:00
|
|
|
"difflib.*" )
|
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-distutils-staticdev", "Python distribution utilities (static libraries)", "${PN}-distutils",
|
2012-10-08 20:51:11 +00:00
|
|
|
"config/lib*.a" ) # package
|
|
|
|
|
2016-02-03 18:23:04 +00:00
|
|
|
m.addPackage( "${PN}-distutils", "Python Distribution Utilities", "${PN}-core ${PN}-email",
|
2012-10-08 20:51:11 +00:00
|
|
|
"config distutils" ) # package
|
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
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",
|
2012-10-08 20:51:11 +00:00
|
|
|
"doctest.*" )
|
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-email", "Python email support", "${PN}-core ${PN}-io ${PN}-re ${PN}-mime ${PN}-audio ${PN}-image ${PN}-netclient",
|
2012-10-08 20:51:11 +00:00
|
|
|
"imaplib.* email" ) # package
|
|
|
|
|
2016-08-12 21:03:33 +00:00
|
|
|
m.addPackage( "${PN}-enum", "Python support for enumerations", "${PN}-core",
|
|
|
|
"enum.*" )
|
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-fcntl", "Python's fcntl interface", "${PN}-core",
|
2012-10-08 20:51:11 +00:00
|
|
|
"lib-dynload/fcntl.*.so" )
|
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-html", "Python HTML processing support", "${PN}-core",
|
2017-01-27 07:55:59 +00:00
|
|
|
"formatter.* htmlentitydefs.* html htmllib.* markupbase.* sgmllib.* HTMLParser.* " )
|
2012-10-08 20:51:11 +00:00
|
|
|
|
2016-07-11 18:05:22 +00:00
|
|
|
m.addPackage( "${PN}-importlib", "Python import implementation library", "${PN}-core ${PN}-lang",
|
2017-01-27 07:50:59 +00:00
|
|
|
"importlib imp.*" )
|
2014-06-04 16:10:38 +00:00
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-gdbm", "Python GNU database support", "${PN}-core",
|
2012-10-08 20:51:11 +00:00
|
|
|
"lib-dynload/_gdbm.*.so" )
|
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-image", "Python graphical image handling", "${PN}-core",
|
2012-10-08 20:51:11 +00:00
|
|
|
"colorsys.* imghdr.* lib-dynload/imageop.*.so lib-dynload/rgbimg.*.so" )
|
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-io", "Python low-level I/O", "${PN}-core ${PN}-math",
|
2012-10-08 20:51:11 +00:00
|
|
|
"lib-dynload/_socket.*.so lib-dynload/_io.*.so lib-dynload/_ssl.*.so lib-dynload/select.*.so lib-dynload/termios.*.so lib-dynload/cStringIO.*.so " +
|
2017-01-27 08:09:43 +00:00
|
|
|
"ipaddress.* pipes.* socket.* ssl.* tempfile.* StringIO.* io.* _pyio.*" )
|
2012-10-08 20:51:11 +00:00
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-json", "Python JSON support", "${PN}-core ${PN}-math ${PN}-re",
|
2012-10-08 20:51:11 +00:00
|
|
|
"json lib-dynload/_json.*.so" ) # package
|
|
|
|
|
2016-08-03 16:32:39 +00:00
|
|
|
m.addPackage( "${PN}-lang", "Python low-level language support", "${PN}-core ${PN}-importlib",
|
2012-10-08 20:51:11 +00:00
|
|
|
"lib-dynload/_bisect.*.so lib-dynload/_collections.*.so lib-dynload/_heapq.*.so lib-dynload/_weakref.*.so lib-dynload/_functools.*.so " +
|
|
|
|
"lib-dynload/array.*.so lib-dynload/itertools.*.so lib-dynload/operator.*.so lib-dynload/parser.*.so " +
|
2016-07-11 18:05:22 +00:00
|
|
|
"atexit.* bisect.* code.* codeop.* collections.* _collections_abc.* contextlib.* dis.* functools.* heapq.* inspect.* keyword.* opcode.* operator.* symbol.* repr.* token.* " +
|
2012-10-08 20:51:11 +00:00
|
|
|
"tokenize.* traceback.* weakref.*" )
|
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-logging", "Python logging support", "${PN}-core ${PN}-io ${PN}-lang ${PN}-pickle ${PN}-stringold",
|
2012-10-08 20:51:11 +00:00
|
|
|
"logging" ) # package
|
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-mailbox", "Python mailbox format support", "${PN}-core ${PN}-mime",
|
2012-10-08 20:51:11 +00:00
|
|
|
"mailbox.*" )
|
|
|
|
|
2016-08-03 16:32:39 +00:00
|
|
|
m.addPackage( "${PN}-math", "Python math support", "${PN}-core ${PN}-crypt",
|
2012-10-08 20:51:11 +00:00
|
|
|
"lib-dynload/cmath.*.so lib-dynload/math.*.so lib-dynload/_random.*.so random.* sets.*" )
|
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-mime", "Python MIME handling APIs", "${PN}-core ${PN}-io",
|
2012-10-08 20:51:11 +00:00
|
|
|
"mimetools.* uu.* quopri.* rfc822.* MimeWriter.*" )
|
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-mmap", "Python memory-mapped file support", "${PN}-core ${PN}-io",
|
2012-10-08 20:51:11 +00:00
|
|
|
"lib-dynload/mmap.*.so " )
|
|
|
|
|
2014-03-20 17:41:39 +00:00
|
|
|
m.addPackage( "${PN}-multiprocessing", "Python multiprocessing support", "${PN}-core ${PN}-io ${PN}-lang ${PN}-pickle ${PN}-threading ${PN}-ctypes ${PN}-mmap",
|
2012-10-08 20:51:11 +00:00
|
|
|
"lib-dynload/_multiprocessing.*.so multiprocessing" ) # package
|
|
|
|
|
2017-04-06 05:07:44 +00:00
|
|
|
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",
|
2012-10-08 20:51:11 +00:00
|
|
|
"*Cookie*.* " +
|
2016-12-23 23:20:48 +00:00
|
|
|
"base64.* cookielib.* ftplib.* gopherlib.* hmac.* http* httplib.* mimetypes.* nntplib.* poplib.* smtplib.* telnetlib.* urllib uuid.* rfc822.* mimetools.*" )
|
2012-10-08 20:51:11 +00:00
|
|
|
|
2015-06-16 18:24:49 +00:00
|
|
|
m.addPackage( "${PN}-netserver", "Python Internet Protocol servers", "${PN}-core ${PN}-netclient ${PN}-shell ${PN}-threading",
|
2017-01-27 08:04:29 +00:00
|
|
|
"cgi.* socketserver.* *HTTPServer.* SocketServer.*" )
|
2012-10-08 20:51:11 +00:00
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-numbers", "Python number APIs", "${PN}-core ${PN}-lang ${PN}-re",
|
2015-04-09 23:55:23 +00:00
|
|
|
"decimal.* fractions.* numbers.*" )
|
2012-10-08 20:51:11 +00:00
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-pickle", "Python serialisation/persistence support", "${PN}-core ${PN}-codecs ${PN}-io ${PN}-re",
|
2017-01-27 08:07:17 +00:00
|
|
|
"_compat_pickle.* pickle.* shelve.* lib-dynload/cPickle.*.so pickletools.*" )
|
2012-10-08 20:51:11 +00:00
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-pkgutil", "Python package extension utility support", "${PN}-core",
|
2012-10-08 20:51:11 +00:00
|
|
|
"pkgutil.*")
|
|
|
|
|
2014-03-20 17:41:39 +00:00
|
|
|
m.addPackage( "${PN}-pprint", "Python pretty-print support", "${PN}-core ${PN}-io",
|
2012-10-08 20:51:11 +00:00
|
|
|
"pprint.*" )
|
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-profile", "Python basic performance profiling support", "${PN}-core ${PN}-textutils",
|
2012-10-08 20:51:11 +00:00
|
|
|
"profile.* pstats.* cProfile.* lib-dynload/_lsprof.*.so" )
|
|
|
|
|
|
|
|
m.addPackage( "${PN}-re", "Python Regular Expression APIs", "${PN}-core",
|
|
|
|
"re.* sre.* sre_compile.* sre_constants* sre_parse.*" ) # _sre is builtin
|
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-readline", "Python readline support", "${PN}-core",
|
2012-10-08 20:51:11 +00:00
|
|
|
"lib-dynload/readline.*.so rlcompleter.*" )
|
|
|
|
|
2014-12-04 19:09:35 +00:00
|
|
|
m.addPackage( "${PN}-reprlib", "Python alternate repr() implementation", "${PN}-core",
|
python3: Upgrade from 3.3.3 to 3.4.2
Modifies:
python3-native_3.3.3.bb -> python3-native_3.4.2.bb: Updates checksums, version, patches
and SRC_URIs to use xz format, LICENSE did not change, dates were updated, adds fix for
ctypes/libffi needed for pip <- required since Python 3.4 (see PEP #453).
python3_3.3.3.bb -> python3_3.4.2.bb: Updates checksums, version, patches and SRC_URIs
to use xz format, adds fix for ctypes/libffi, fixes oe_multilib_header() call,
adds python3-core as RDEPENDS to python3-misc to avoid QA issue.
generate-manifest-3.4.py - > generate-manifest-3.4.py: fixes reprlib,
adds _sitebuiltins and _collections_abc <- formerly part of collections, separated since 3.4
python-3.3-manifest.inc -> python-3.4-manifest.inc
Rebases:
12-distutils-prefix-is-inside-staging-area.patch
python-3.3-multilib.patch
04-default-is-optimized.patch
avoid-ncursesw-include-path.patch
Deletes (fixed upstream):
fix-ast.h-dependency.patch
python3-fix-build-error-with-Readline-6.3.patch
06-ctypes-libffi-fix-configure.patch
remove_sqlite_rpath.patch
[YOCTO #6857]
(From OE-Core rev: 45290ff4d1902bd0ab5377568f969fbb660c0c87)
Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-02-27 18:49:22 +00:00
|
|
|
"reprlib.py" )
|
2014-12-04 19:09:35 +00:00
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-resource", "Python resource control interface", "${PN}-core",
|
2012-10-08 20:51:11 +00:00
|
|
|
"lib-dynload/resource.*.so" )
|
|
|
|
|
2016-08-12 21:03:33 +00:00
|
|
|
m.addPackage( "${PN}-selectors", "Python High-level I/O multiplexing", "${PN}-core",
|
|
|
|
"selectors.*" )
|
|
|
|
|
2016-07-07 15:39:31 +00:00
|
|
|
m.addPackage( "${PN}-shell", "Python shell-like functionality", "${PN}-core ${PN}-re ${PN}-compression",
|
2012-10-08 20:51:11 +00:00
|
|
|
"cmd.* commands.* dircache.* fnmatch.* glob.* popen2.* shlex.* shutil.*" )
|
|
|
|
|
2016-08-22 07:52:46 +00:00
|
|
|
m.addPackage( "${PN}-signal", "Python set handlers for asynchronous events support", "${PN}-core ${PN}-enum",
|
2016-08-12 21:03:33 +00:00
|
|
|
"signal.*" )
|
|
|
|
|
|
|
|
m.addPackage( "${PN}-subprocess", "Python subprocess support", "${PN}-core ${PN}-io ${PN}-re ${PN}-fcntl ${PN}-pickle ${PN}-threading ${PN}-signal ${PN}-selectors",
|
|
|
|
"subprocess.* lib-dynload/_posixsubprocess.*.so" )
|
2012-10-08 20:51:11 +00:00
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-sqlite3", "Python Sqlite3 database support", "${PN}-core ${PN}-datetime ${PN}-lang ${PN}-crypt ${PN}-io ${PN}-threading",
|
2012-10-08 20:51:11 +00:00
|
|
|
"lib-dynload/_sqlite3.*.so sqlite3/dbapi2.* sqlite3/__init__.* sqlite3/dump.*" )
|
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-sqlite3-tests", "Python Sqlite3 database support tests", "${PN}-core ${PN}-sqlite3",
|
2012-10-08 20:51:11 +00:00
|
|
|
"sqlite3/test" )
|
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-stringold", "Python string APIs [deprecated]", "${PN}-core ${PN}-re",
|
2012-10-08 20:51:11 +00:00
|
|
|
"lib-dynload/strop.*.so string.* stringold.*" )
|
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-syslog", "Python syslog interface", "${PN}-core",
|
2012-10-08 20:51:11 +00:00
|
|
|
"lib-dynload/syslog.*.so" )
|
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-terminal", "Python terminal controlling support", "${PN}-core ${PN}-io",
|
2012-10-08 20:51:11 +00:00
|
|
|
"pty.* tty.*" )
|
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-tests", "Python tests", "${PN}-core",
|
2012-10-08 20:51:11 +00:00
|
|
|
"test" ) # package
|
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-threading", "Python threading & synchronization support", "${PN}-core ${PN}-lang",
|
2016-08-23 11:48:42 +00:00
|
|
|
"_threading_local.* dummy_thread.* dummy_threading.* mutex.* threading.* queue.*" )
|
2012-10-08 20:51:11 +00:00
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-tkinter", "Python Tcl/Tk bindings", "${PN}-core",
|
2012-10-08 20:51:11 +00:00
|
|
|
"lib-dynload/_tkinter.*.so lib-tk tkinter" ) # package
|
|
|
|
|
2017-01-27 08:18:38 +00:00
|
|
|
m.addPackage( "${PN}-typing", "Python typing support", "${PN}-core",
|
|
|
|
"typing.*" )
|
|
|
|
|
2014-03-20 17:41:39 +00:00
|
|
|
m.addPackage( "${PN}-unittest", "Python unit testing framework", "${PN}-core ${PN}-stringold ${PN}-lang ${PN}-io ${PN}-difflib ${PN}-pprint ${PN}-shell",
|
2012-10-08 20:51:11 +00:00
|
|
|
"unittest/" )
|
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-unixadmin", "Python Unix administration support", "${PN}-core",
|
2012-10-08 20:51:11 +00:00
|
|
|
"lib-dynload/nis.*.so lib-dynload/grp.*.so lib-dynload/pwd.*.so getpass.*" )
|
|
|
|
|
2016-02-10 14:04:04 +00:00
|
|
|
m.addPackage( "${PN}-xml", "Python basic XML support", "${PN}-core ${PN}-re",
|
|
|
|
"lib-dynload/_elementtree.*.so lib-dynload/pyexpat.*.so xml xmllib.*" ) # package
|
2012-10-08 20:51:11 +00:00
|
|
|
|
2017-04-06 05:07:44 +00:00
|
|
|
m.addPackage( "${PN}-xmlrpc", "Python XML-RPC support", "${PN}-core ${PN}-xml ${PN}-netserver ${PN}-lang ${PN}-pydoc",
|
2012-10-08 20:51:11 +00:00
|
|
|
"xmlrpclib.* SimpleXMLRPCServer.* DocXMLRPCServer.* xmlrpc" )
|
|
|
|
|
2014-03-20 17:23:08 +00:00
|
|
|
m.addPackage( "${PN}-mailbox", "Python mailbox format support", "${PN}-core ${PN}-mime",
|
2012-10-08 20:51:11 +00:00
|
|
|
"mailbox.*" )
|
|
|
|
|
|
|
|
m.make()
|