diff options
Diffstat (limited to 'meta/recipes-devtools/python/python')
4 files changed, 1421 insertions, 8 deletions
diff --git a/meta/recipes-devtools/python/python/create_manifest2.py b/meta/recipes-devtools/python/python/create_manifest2.py new file mode 100644 index 0000000000..bd64ec3ee7 --- /dev/null +++ b/meta/recipes-devtools/python/python/create_manifest2.py | |||
@@ -0,0 +1,277 @@ | |||
1 | # This script is used as a bitbake task to create a new python manifest | ||
2 | # $ bitbake python -c create_manifest | ||
3 | # | ||
4 | # Our goal is to keep python-core as small as posible and add other python | ||
5 | # packages only when the user needs them, hence why we split upstream python | ||
6 | # into several packages. | ||
7 | # | ||
8 | # In a very simplistic way what this does is: | ||
9 | # Launch python and see specifically what is required for it to run at a minimum | ||
10 | # | ||
11 | # Go through the python-manifest file and launch a separate task for every single | ||
12 | # one of the files on each package, this task will check what was required for that | ||
13 | # specific module to run, these modules will be called dependencies. | ||
14 | # The output of such task will be a list of the modules or dependencies that were | ||
15 | # found for that file. | ||
16 | # | ||
17 | # Such output will be parsed by this script, we will look for each dependency on the | ||
18 | # manifest and if we find that another package already includes it, then we will add | ||
19 | # that package as an RDEPENDS to the package we are currently checking; in case we dont | ||
20 | # find the current dependency on any other package we will add it to the current package | ||
21 | # as part of FILES. | ||
22 | # | ||
23 | # | ||
24 | # This way we will create a new manifest from the data structure that was built during | ||
25 | # this process, ont this new manifest each package will contain specifically only | ||
26 | # what it needs to run. | ||
27 | # | ||
28 | # There are some caveats which we try to deal with, such as repeated files on different | ||
29 | # packages, packages that include folders, wildcards, and special packages. | ||
30 | # Its also important to note that this method only works for python files, and shared | ||
31 | # libraries. Static libraries, header files and binaries need to be dealt with manually. | ||
32 | # | ||
33 | # Author: Alejandro Enedino Hernandez Samaniego "aehs29" <aehs29@gmail.com> | ||
34 | |||
35 | |||
36 | import sys | ||
37 | import subprocess | ||
38 | import json | ||
39 | import os | ||
40 | |||
41 | # Hack to get native python search path (for folders), not fond of it but it works for now | ||
42 | pivot='recipe-sysroot-native' | ||
43 | for p in sys.path: | ||
44 | if pivot in p: | ||
45 | nativelibfolder=p[:p.find(pivot)+len(pivot)] | ||
46 | |||
47 | # Empty dict to hold the whole manifest | ||
48 | new_manifest = {} | ||
49 | |||
50 | # Check for repeated files, folders and wildcards | ||
51 | allfiles=[] | ||
52 | repeated=[] | ||
53 | wildcards=[] | ||
54 | |||
55 | hasfolders=[] | ||
56 | allfolders=[] | ||
57 | |||
58 | def isFolder(value): | ||
59 | if os.path.isdir(value.replace('${libdir}',nativelibfolder+'/usr/lib')) or os.path.isdir(value.replace('${libdir}',nativelibfolder+'/usr/lib64')) or os.path.isdir(value.replace('${libdir}',nativelibfolder+'/usr/lib32')): | ||
60 | return True | ||
61 | else: | ||
62 | return False | ||
63 | |||
64 | # Read existing JSON manifest | ||
65 | with open('python2-manifest.json') as manifest: | ||
66 | old_manifest=json.load(manifest) | ||
67 | |||
68 | |||
69 | # First pass to get core-package functionality, because we base everything on the fact that core is actually working | ||
70 | # Not exactly the same so it should not be a function | ||
71 | print ("Getting dependencies for core package:") | ||
72 | |||
73 | # Special call to check for core package | ||
74 | output = subprocess.check_output([sys.executable, 'get_module_deps2.py', 'python-core-package']) | ||
75 | for item in output.split(): | ||
76 | # We append it so it doesnt hurt what we currently have: | ||
77 | if item not in old_manifest['core']['files']: | ||
78 | # We use the same data structure since its the one which will be used to check | ||
79 | # dependencies for other packages | ||
80 | old_manifest['core']['files'].append(item) | ||
81 | |||
82 | for value in old_manifest['core']['files']: | ||
83 | # Ignore folders, since we don't import those, difficult to handle multilib | ||
84 | if isFolder(value): | ||
85 | # Pass it directly | ||
86 | if value not in old_manifest['core']['files']: | ||
87 | old_manifest['core']['files'].append(value) | ||
88 | # Ignore binaries, since we don't import those, assume it was added correctly (manually) | ||
89 | if '${bindir}' in value: | ||
90 | # Pass it directly | ||
91 | if value not in old_manifest['core']['files']: | ||
92 | old_manifest['core']['files'].append(value) | ||
93 | continue | ||
94 | # Ignore empty values | ||
95 | if value == '': | ||
96 | continue | ||
97 | if '${includedir}' in value: | ||
98 | if value not in old_manifest['core']['files']: | ||
99 | old_manifest['core']['files'].append(value) | ||
100 | continue | ||
101 | # Get module name , shouldnt be affected by libdir/bindir | ||
102 | value = os.path.splitext(os.path.basename(os.path.normpath(value)))[0] | ||
103 | |||
104 | |||
105 | # Launch separate task for each module for deterministic behavior | ||
106 | # Each module will only import what is necessary for it to work in specific | ||
107 | print ('Getting dependencies for module: %s' % value) | ||
108 | output = subprocess.check_output([sys.executable, 'get_module_deps2.py', '%s' % value]) | ||
109 | for item in output.split(): | ||
110 | # We append it so it doesnt hurt what we currently have: | ||
111 | if item not in old_manifest['core']['files']: | ||
112 | old_manifest['core']['files'].append(item) | ||
113 | |||
114 | # We check which packages include folders | ||
115 | for key in old_manifest: | ||
116 | for value in old_manifest[key]['files']: | ||
117 | # Ignore folders, since we don't import those, difficult to handle multilib | ||
118 | if isFolder(value): | ||
119 | print ('%s is a folder' % value) | ||
120 | if key not in hasfolders: | ||
121 | hasfolders.append(key) | ||
122 | if value not in allfolders: | ||
123 | allfolders.append(value) | ||
124 | |||
125 | for key in old_manifest: | ||
126 | # Use an empty dict as data structure to hold data for each package and fill it up | ||
127 | new_manifest[key]={} | ||
128 | new_manifest[key]['files']=[] | ||
129 | new_manifest[key]['rdepends']=[] | ||
130 | # All packages should depend on core | ||
131 | if key != 'core': | ||
132 | new_manifest[key]['rdepends'].append('core') | ||
133 | new_manifest[key]['summary']=old_manifest[key]['summary'] | ||
134 | |||
135 | # Handle special cases, we assume that when they were manually added | ||
136 | # to the manifest we knew what we were doing. | ||
137 | print ('Handling package %s' % key) | ||
138 | special_packages=['misc', 'modules', 'dev'] | ||
139 | if key in special_packages or 'staticdev' in key: | ||
140 | print('Passing %s package directly' % key) | ||
141 | new_manifest[key]=old_manifest[key] | ||
142 | continue | ||
143 | |||
144 | for value in old_manifest[key]['files']: | ||
145 | # We already handled core on the first pass | ||
146 | if key == 'core': | ||
147 | new_manifest[key]['files'].append(value) | ||
148 | continue | ||
149 | # Ignore folders, since we don't import those, difficult to handle multilib | ||
150 | if isFolder(value): | ||
151 | # Pass folders directly | ||
152 | new_manifest[key]['files'].append(value) | ||
153 | # Ignore binaries, since we don't import those | ||
154 | if '${bindir}' in value: | ||
155 | # Pass it directly to the new manifest data structure | ||
156 | if value not in new_manifest[key]['files']: | ||
157 | new_manifest[key]['files'].append(value) | ||
158 | continue | ||
159 | # Ignore empty values | ||
160 | if value == '': | ||
161 | continue | ||
162 | if '${includedir}' in value: | ||
163 | if value not in new_manifest[key]['files']: | ||
164 | new_manifest[key]['files'].append(value) | ||
165 | continue | ||
166 | # Get module name , shouldnt be affected by libdir/bindir | ||
167 | value = os.path.splitext(os.path.basename(os.path.normpath(value)))[0] | ||
168 | |||
169 | # Launch separate task for each module for deterministic behavior | ||
170 | # Each module will only import what is necessary for it to work in specific | ||
171 | print ('Getting dependencies for module: %s' % value) | ||
172 | output = subprocess.check_output([sys.executable, 'get_module_deps2.py', '%s' % value]) | ||
173 | |||
174 | # We can print dependencies for debugging purposes | ||
175 | #print (output) | ||
176 | # Output will have all dependencies | ||
177 | for item in output.split(): | ||
178 | |||
179 | # Warning: This first part is ugly | ||
180 | # One of the dependencies that was found, could be inside of one of the folders included by another package | ||
181 | # We need to check if this happens so we can add the package containing the folder as an RDEPENDS | ||
182 | # e.g. Folder encodings contained in codecs | ||
183 | # This would be solved if no packages included any folders | ||
184 | |||
185 | # This can be done in two ways: | ||
186 | # 1 - We assume that if we take out the filename from the path we would get | ||
187 | # the folder string, then we would check if folder string is in the list of folders | ||
188 | # This would not work if a package contains a folder which contains another folder | ||
189 | # e.g. path/folder1/folder2/filename folder_string= path/folder1/folder2 | ||
190 | # folder_string would not match any value contained in the list of folders | ||
191 | # | ||
192 | # 2 - We do it the other way around, checking if the folder is contained in the path | ||
193 | # e.g. path/folder1/folder2/filename folder_string= path/folder1/folder2 | ||
194 | # is folder_string inside path/folder1/folder2/filename?, | ||
195 | # Yes, it works, but we waste a couple of milliseconds. | ||
196 | |||
197 | inFolders=False | ||
198 | for folder in allfolders: | ||
199 | if folder in item: | ||
200 | inFolders = True # Did we find a folder? | ||
201 | folderFound = False # Second flag to break inner for | ||
202 | # Loop only through packages which contain folders | ||
203 | for keyfolder in hasfolders: | ||
204 | if (folderFound == False): | ||
205 | #print("Checking folder %s on package %s" % (item,keyfolder)) | ||
206 | for file_folder in old_manifest[keyfolder]['files']: | ||
207 | if file_folder==folder: | ||
208 | print ('%s found in %s' % (folder, keyfolder)) | ||
209 | folderFound = True | ||
210 | if keyfolder not in new_manifest[key]['rdepends'] and keyfolder != key: | ||
211 | new_manifest[key]['rdepends'].append(keyfolder) | ||
212 | else: | ||
213 | break | ||
214 | |||
215 | # A folder was found so we're done with this item, we can go on | ||
216 | if inFolders: | ||
217 | continue | ||
218 | |||
219 | # We might already have it on the dictionary since it could depend on a (previously checked) module | ||
220 | if item not in new_manifest[key]['files']: | ||
221 | # Handle core as a special package, we already did it so we pass it to NEW data structure directly | ||
222 | if key=='core': | ||
223 | print('Adding %s to %s FILES' % (item, key)) | ||
224 | if item.endswith('*'): | ||
225 | wildcards.append(item) | ||
226 | new_manifest[key]['files'].append(item) | ||
227 | |||
228 | # Check for repeated files | ||
229 | if item not in allfiles: | ||
230 | allfiles.append(item) | ||
231 | else: | ||
232 | repeated.append(item) | ||
233 | |||
234 | else: | ||
235 | |||
236 | # Check if this dependency is already contained on another package, so we add it | ||
237 | # as an RDEPENDS, or if its not, it means it should be contained on the current | ||
238 | # package, so we should add it to FILES | ||
239 | for newkey in old_manifest: | ||
240 | # Debug | ||
241 | #print("Checking %s " % item + " in %s" % newkey) | ||
242 | if item in old_manifest[newkey]['files']: | ||
243 | # Since were nesting, we need to check its not the same key | ||
244 | if(newkey!=key): | ||
245 | if newkey not in new_manifest[key]['rdepends']: | ||
246 | # Add it to the new manifest data struct | ||
247 | # Debug | ||
248 | print('Adding %s to %s RDEPENDS, because it contains %s' % (newkey, key, item)) | ||
249 | new_manifest[key]['rdepends'].append(newkey) | ||
250 | break | ||
251 | else: | ||
252 | # Debug | ||
253 | print('Adding %s to %s FILES' % (item, key)) | ||
254 | # Since it wasnt found on another package, its not an RDEP, so add it to FILES for this package | ||
255 | new_manifest[key]['files'].append(item) | ||
256 | if item.endswith('*'): | ||
257 | wildcards.append(item) | ||
258 | if item not in allfiles: | ||
259 | allfiles.append(item) | ||
260 | else: | ||
261 | repeated.append(item) | ||
262 | |||
263 | print ('The following files are repeated (contained in more than one package), please check which package should get it:') | ||
264 | print (repeated) | ||
265 | print('The following files contain wildcards, please check they are necessary') | ||
266 | print(wildcards) | ||
267 | print('The following files contain folders, please check they are necessary') | ||
268 | print(hasfolders) | ||
269 | |||
270 | # Sort it just so it looks nice | ||
271 | for key in new_manifest: | ||
272 | new_manifest[key]['files'].sort() | ||
273 | new_manifest[key]['rdepends'].sort() | ||
274 | |||
275 | # Create the manifest from the data structure that was built | ||
276 | with open('python2-manifest.json.new','w') as outfile: | ||
277 | json.dump(new_manifest,outfile,sort_keys=True, indent=4) | ||
diff --git a/meta/recipes-devtools/python/python/get_module_deps2.py b/meta/recipes-devtools/python/python/get_module_deps2.py new file mode 100644 index 0000000000..73e7c6f6dc --- /dev/null +++ b/meta/recipes-devtools/python/python/get_module_deps2.py | |||
@@ -0,0 +1,112 @@ | |||
1 | # This script is launched on separate task for each python module | ||
2 | # It checks for dependencies for that specific module and prints | ||
3 | # them out, the output of this execution will have all dependencies | ||
4 | # for a specific module, which will be parsed an dealt on create_manifest.py | ||
5 | # | ||
6 | # Author: Alejandro Enedino Hernandez Samaniego "aehs29" <aehs29@gmail.com> | ||
7 | |||
8 | |||
9 | # We can get a log per module, for all the dependencies that were found, but its messy. | ||
10 | debug=False | ||
11 | |||
12 | import sys | ||
13 | |||
14 | # We can get a list of the modules which are currently required to run python | ||
15 | # so we run python-core and get its modules, we then import what we need | ||
16 | # and check what modules are currently running, if we substract them from the | ||
17 | # modules we had initially, we get the dependencies for the module we imported. | ||
18 | |||
19 | # We use importlib to achieve this, so we also need to know what modules importlib needs | ||
20 | import importlib | ||
21 | |||
22 | core_deps=set(sys.modules) | ||
23 | |||
24 | def fix_path(dep_path): | ||
25 | import os | ||
26 | # We DONT want the path on our HOST system | ||
27 | pivot='recipe-sysroot-native' | ||
28 | dep_path=dep_path[dep_path.find(pivot)+len(pivot):] | ||
29 | |||
30 | if '/usr/bin' in dep_path: | ||
31 | dep_path = dep_path.replace('/usr/bin''${bindir}') | ||
32 | |||
33 | # Handle multilib, is there a better way? | ||
34 | if '/usr/lib32' in dep_path: | ||
35 | dep_path = dep_path.replace('/usr/lib32','${libdir}') | ||
36 | if '/usr/lib64' in dep_path: | ||
37 | dep_path = dep_path.replace('/usr/lib64','${libdir}') | ||
38 | if '/usr/lib' in dep_path: | ||
39 | dep_path = dep_path.replace('/usr/lib','${libdir}') | ||
40 | if '/usr/include' in dep_path: | ||
41 | dep_path = dep_path.replace('/usr/include','${includedir}') | ||
42 | if '__init__.' in dep_path: | ||
43 | dep_path = os.path.split(dep_path)[0] | ||
44 | |||
45 | # If a *.pyc file was imported, we replace it with *.py (since we deal with PYCs on create_manifest) | ||
46 | if '.pyc' in dep_path: | ||
47 | dep_path = dep_path.replace('.pyc','.py') | ||
48 | |||
49 | return dep_path | ||
50 | |||
51 | # Module to import was passed as an argument | ||
52 | current_module = str(sys.argv[1]).rstrip() | ||
53 | if(debug==True): | ||
54 | log = open('log_%s' % current_module,'w') | ||
55 | log.write('Module %s generated the following dependencies:\n' % current_module) | ||
56 | try: | ||
57 | importlib.import_module('%s' % current_module) | ||
58 | except ImportError as e: | ||
59 | if (debug==True): | ||
60 | log.write('Module was not found') | ||
61 | pass | ||
62 | |||
63 | |||
64 | # Get current module dependencies, dif will contain a list of specific deps for this module | ||
65 | module_deps=set(sys.modules) | ||
66 | |||
67 | # We handle the core package (1st pass on create_manifest.py) as a special case | ||
68 | if current_module == 'python-core-package': | ||
69 | dif = core_deps | ||
70 | else: | ||
71 | dif = module_deps-core_deps | ||
72 | |||
73 | |||
74 | # Check where each dependency came from | ||
75 | for item in dif: | ||
76 | dep_path='' | ||
77 | try: | ||
78 | if (debug==True): | ||
79 | log.write('Calling: sys.modules[' + '%s' % item + '].__file__\n') | ||
80 | dep_path = sys.modules['%s' % item].__file__ | ||
81 | except AttributeError as e: | ||
82 | # Deals with thread (builtin module) not having __file__ attribute | ||
83 | if debug==True: | ||
84 | log.write(item + ' ') | ||
85 | log.write(str(e)) | ||
86 | log.write('\n') | ||
87 | pass | ||
88 | except NameError as e: | ||
89 | # Deals with NameError: name 'dep_path' is not defined | ||
90 | # because module is not found (wasn't compiled?), e.g. bddsm | ||
91 | if (debug==True): | ||
92 | log.write(item+' ') | ||
93 | log.write(str(e)) | ||
94 | pass | ||
95 | |||
96 | # Site-customize is a special case since we (OpenEmbedded) put it there manually | ||
97 | if 'sitecustomize' in dep_path: | ||
98 | dep_path = '${libdir}/python2.7/sitecustomize.py' | ||
99 | # Prints out result, which is what will be used by create_manifest | ||
100 | print (dep_path) | ||
101 | continue | ||
102 | |||
103 | dep_path = fix_path(dep_path) | ||
104 | |||
105 | if (debug==True): | ||
106 | log.write(dep_path+'\n') | ||
107 | |||
108 | # Prints out result, which is what will be used by create_manifest | ||
109 | print (dep_path) | ||
110 | |||
111 | if debug==True: | ||
112 | log.close() | ||
diff --git a/meta/recipes-devtools/python/python/python2-manifest.json b/meta/recipes-devtools/python/python/python2-manifest.json new file mode 100644 index 0000000000..8ebc715fc1 --- /dev/null +++ b/meta/recipes-devtools/python/python/python2-manifest.json | |||
@@ -0,0 +1,1032 @@ | |||
1 | { | ||
2 | "2to3": { | ||
3 | "files": [ | ||
4 | "${bindir}/2to3", | ||
5 | "${libdir}/python2.7/lib2to3" | ||
6 | ], | ||
7 | "rdepends": [ | ||
8 | "core" | ||
9 | ], | ||
10 | "summary": "Python automated Python 2 to 3 code translator" | ||
11 | }, | ||
12 | "argparse": { | ||
13 | "files": [ | ||
14 | "${libdir}/python2.7/argparse.py" | ||
15 | ], | ||
16 | "rdepends": [ | ||
17 | "codecs", | ||
18 | "core", | ||
19 | "lang", | ||
20 | "textutils" | ||
21 | ], | ||
22 | "summary": "Python command line argument parser" | ||
23 | }, | ||
24 | "audio": { | ||
25 | "files": [ | ||
26 | "${libdir}/python2.7/audiodev.py", | ||
27 | "${libdir}/python2.7/chunk.py", | ||
28 | "${libdir}/python2.7/lib-dynload/audioop.so", | ||
29 | "${libdir}/python2.7/lib-dynload/ossaudiodev.so", | ||
30 | "${libdir}/python2.7/sndhdr.py", | ||
31 | "${libdir}/python2.7/sunau.py", | ||
32 | "${libdir}/python2.7/sunaudio.py", | ||
33 | "${libdir}/python2.7/toaiff.py", | ||
34 | "${libdir}/python2.7/wave.py" | ||
35 | ], | ||
36 | "rdepends": [ | ||
37 | "core", | ||
38 | "crypt", | ||
39 | "fcntl", | ||
40 | "io", | ||
41 | "math" | ||
42 | ], | ||
43 | "summary": "Python Audio Handling" | ||
44 | }, | ||
45 | "bsddb": { | ||
46 | "files": [ | ||
47 | "${libdir}/python2.7/bsddb", | ||
48 | "${libdir}/python2.7/lib-dynload/_bsddb.so" | ||
49 | ], | ||
50 | "rdepends": [ | ||
51 | "core" | ||
52 | ], | ||
53 | "summary": "Python bindings for the Berkeley Database" | ||
54 | }, | ||
55 | "codecs": { | ||
56 | "files": [ | ||
57 | "${libdir}/python2.7/gettext.py", | ||
58 | "${libdir}/python2.7/lib-dynload/_codecs_cn.so", | ||
59 | "${libdir}/python2.7/lib-dynload/_codecs_hk.so", | ||
60 | "${libdir}/python2.7/lib-dynload/_codecs_iso2022.so", | ||
61 | "${libdir}/python2.7/lib-dynload/_codecs_jp.so", | ||
62 | "${libdir}/python2.7/lib-dynload/_codecs_kr.so", | ||
63 | "${libdir}/python2.7/lib-dynload/_codecs_tw.so", | ||
64 | "${libdir}/python2.7/lib-dynload/_multibytecodec.so", | ||
65 | "${libdir}/python2.7/lib-dynload/unicodedata.so", | ||
66 | "${libdir}/python2.7/locale.py", | ||
67 | "${libdir}/python2.7/stringprep.py", | ||
68 | "${libdir}/python2.7/xdrlib.py" | ||
69 | ], | ||
70 | "rdepends": [ | ||
71 | "core", | ||
72 | "io", | ||
73 | "lang" | ||
74 | ], | ||
75 | "summary": "Python codec" | ||
76 | }, | ||
77 | "compile": { | ||
78 | "files": [ | ||
79 | "${libdir}/python2.7/compileall.py", | ||
80 | "${libdir}/python2.7/py_compile.py" | ||
81 | ], | ||
82 | "rdepends": [ | ||
83 | "core" | ||
84 | ], | ||
85 | "summary": "Python bytecode compilation support" | ||
86 | }, | ||
87 | "compiler": { | ||
88 | "files": [ | ||
89 | "${libdir}/python2.7/compiler" | ||
90 | ], | ||
91 | "rdepends": [ | ||
92 | "core", | ||
93 | "io", | ||
94 | "lang" | ||
95 | ], | ||
96 | "summary": "Python compiler support" | ||
97 | }, | ||
98 | "compression": { | ||
99 | "files": [ | ||
100 | "${libdir}/python2.7/gzip.py", | ||
101 | "${libdir}/python2.7/lib-dynload/bz2.so", | ||
102 | "${libdir}/python2.7/tarfile.py", | ||
103 | "${libdir}/python2.7/zipfile.py" | ||
104 | ], | ||
105 | "rdepends": [ | ||
106 | "core", | ||
107 | "io", | ||
108 | "shell", | ||
109 | "unixadmin", | ||
110 | "zlib" | ||
111 | ], | ||
112 | "summary": "Python high-level compression support" | ||
113 | }, | ||
114 | "contextlib": { | ||
115 | "files": [ | ||
116 | "${libdir}/python2.7/contextlib.py" | ||
117 | ], | ||
118 | "rdepends": [ | ||
119 | "core", | ||
120 | "lang" | ||
121 | ], | ||
122 | "summary": "Python utilities for with-statementcontexts." | ||
123 | }, | ||
124 | "core": { | ||
125 | "files": [ | ||
126 | "${bindir}/python*", | ||
127 | "${includedir}/python2.7/pyconfig*.h", | ||
128 | "${libdir}/python2.7/ConfigParser.py", | ||
129 | "${libdir}/python2.7/UserDict.py", | ||
130 | "${libdir}/python2.7/UserList.py", | ||
131 | "${libdir}/python2.7/UserString.py", | ||
132 | "${libdir}/python2.7/__future__.py", | ||
133 | "${libdir}/python2.7/_abcoll.py", | ||
134 | "${libdir}/python2.7/_sysconfigdata.py", | ||
135 | "${libdir}/python2.7/_weakrefset.py", | ||
136 | "${libdir}/python2.7/abc.py", | ||
137 | "${libdir}/python2.7/ast.py", | ||
138 | "${libdir}/python2.7/atexit.py", | ||
139 | "${libdir}/python2.7/codecs.py", | ||
140 | "${libdir}/python2.7/collections.py", | ||
141 | "${libdir}/python2.7/copy.py", | ||
142 | "${libdir}/python2.7/copy_reg.py", | ||
143 | "${libdir}/python2.7/encodings", | ||
144 | "${libdir}/python2.7/encodings/aliases.py", | ||
145 | "${libdir}/python2.7/encodings/utf_8.py", | ||
146 | "${libdir}/python2.7/genericpath.py", | ||
147 | "${libdir}/python2.7/getopt.py", | ||
148 | "${libdir}/python2.7/heapq.py", | ||
149 | "${libdir}/python2.7/importlib", | ||
150 | "${libdir}/python2.7/keyword.py", | ||
151 | "${libdir}/python2.7/lib-dynload/_collections.so", | ||
152 | "${libdir}/python2.7/lib-dynload/_heapq.so", | ||
153 | "${libdir}/python2.7/lib-dynload/_locale.so", | ||
154 | "${libdir}/python2.7/lib-dynload/_struct.so", | ||
155 | "${libdir}/python2.7/lib-dynload/binascii.so", | ||
156 | "${libdir}/python2.7/lib-dynload/itertools.so", | ||
157 | "${libdir}/python2.7/lib-dynload/operator.so", | ||
158 | "${libdir}/python2.7/lib-dynload/readline.so", | ||
159 | "${libdir}/python2.7/lib-dynload/strop.so", | ||
160 | "${libdir}/python2.7/lib-dynload/time.so", | ||
161 | "${libdir}/python2.7/lib-dynload/xreadlines.so", | ||
162 | "${libdir}/python2.7/linecache.py", | ||
163 | "${libdir}/python2.7/new.py", | ||
164 | "${libdir}/python2.7/os.py", | ||
165 | "${libdir}/python2.7/platform.py", | ||
166 | "${libdir}/python2.7/posixpath.py", | ||
167 | "${libdir}/python2.7/re.py", | ||
168 | "${libdir}/python2.7/rlcompleter.py", | ||
169 | "${libdir}/python2.7/site.py", | ||
170 | "${libdir}/python2.7/sitecustomize.py", | ||
171 | "${libdir}/python2.7/sre_compile.py", | ||
172 | "${libdir}/python2.7/sre_constants.py", | ||
173 | "${libdir}/python2.7/sre_parse.py", | ||
174 | "${libdir}/python2.7/stat.py", | ||
175 | "${libdir}/python2.7/string.py", | ||
176 | "${libdir}/python2.7/struct.py", | ||
177 | "${libdir}/python2.7/sysconfig.py", | ||
178 | "${libdir}/python2.7/traceback.py", | ||
179 | "${libdir}/python2.7/types.py", | ||
180 | "${libdir}/python2.7/warnings.py", | ||
181 | "${libdir}/python2.7/weakref.py" | ||
182 | ], | ||
183 | "rdepends": [], | ||
184 | "summary": "Python interpreter and core modules" | ||
185 | }, | ||
186 | "crypt": { | ||
187 | "files": [ | ||
188 | "${libdir}/python2.7/hashlib.py", | ||
189 | "${libdir}/python2.7/lib-dynload/_hashlib.so", | ||
190 | "${libdir}/python2.7/lib-dynload/crypt.so", | ||
191 | "${libdir}/python2.7/md5.py", | ||
192 | "${libdir}/python2.7/sha.py" | ||
193 | ], | ||
194 | "rdepends": [ | ||
195 | "core" | ||
196 | ], | ||
197 | "summary": "Python basic cryptographic and hashing support" | ||
198 | }, | ||
199 | "ctypes": { | ||
200 | "files": [ | ||
201 | "${libdir}/python2.7/ctypes", | ||
202 | "${libdir}/python2.7/lib-dynload/_ctypes.so", | ||
203 | "${libdir}/python2.7/lib-dynload/_ctypes_test.so" | ||
204 | ], | ||
205 | "rdepends": [ | ||
206 | "core" | ||
207 | ], | ||
208 | "summary": "Python C types support" | ||
209 | }, | ||
210 | "curses": { | ||
211 | "files": [ | ||
212 | "${libdir}/python2.7/curses", | ||
213 | "${libdir}/python2.7/lib-dynload/_curses.so", | ||
214 | "${libdir}/python2.7/lib-dynload/_curses_panel.so" | ||
215 | ], | ||
216 | "rdepends": [ | ||
217 | "core" | ||
218 | ], | ||
219 | "summary": "Python curses support" | ||
220 | }, | ||
221 | "datetime": { | ||
222 | "files": [ | ||
223 | "${libdir}/python2.7/_strptime.py", | ||
224 | "${libdir}/python2.7/calendar.py", | ||
225 | "${libdir}/python2.7/lib-dynload/datetime.so" | ||
226 | ], | ||
227 | "rdepends": [ | ||
228 | "codecs", | ||
229 | "core", | ||
230 | "lang" | ||
231 | ], | ||
232 | "summary": "Python calendar and time support" | ||
233 | }, | ||
234 | "db": { | ||
235 | "files": [ | ||
236 | "${libdir}/python2.7/anydbm.py", | ||
237 | "${libdir}/python2.7/dbhash.py", | ||
238 | "${libdir}/python2.7/dumbdbm.py", | ||
239 | "${libdir}/python2.7/lib-dynload/dbm.so", | ||
240 | "${libdir}/python2.7/whichdb.py" | ||
241 | ], | ||
242 | "rdepends": [ | ||
243 | "bsddb", | ||
244 | "core", | ||
245 | "gdbm" | ||
246 | ], | ||
247 | "summary": "Python file-based database support" | ||
248 | }, | ||
249 | "debugger": { | ||
250 | "files": [ | ||
251 | "${libdir}/python2.7/bdb.py", | ||
252 | "${libdir}/python2.7/pdb.py" | ||
253 | ], | ||
254 | "rdepends": [ | ||
255 | "core", | ||
256 | "io", | ||
257 | "lang", | ||
258 | "pprint", | ||
259 | "shell" | ||
260 | ], | ||
261 | "summary": "Python debugger" | ||
262 | }, | ||
263 | "dev": { | ||
264 | "files": [ | ||
265 | "${base_libdir}/*.a", | ||
266 | "${base_libdir}/*.o", | ||
267 | "${datadir}/aclocal", | ||
268 | "${datadir}/pkgconfig", | ||
269 | "${includedir}", | ||
270 | "${libdir}/*.a", | ||
271 | "${libdir}/*.la", | ||
272 | "${libdir}/*.o", | ||
273 | "${libdir}/lib*${SOLIBSDEV}", | ||
274 | "${libdir}/pkgconfig", | ||
275 | "${libdir}/python2.7/config/Makefile" | ||
276 | ], | ||
277 | "rdepends": [ | ||
278 | "core" | ||
279 | ], | ||
280 | "summary": "Python development package" | ||
281 | }, | ||
282 | "difflib": { | ||
283 | "files": [ | ||
284 | "${libdir}/python2.7/difflib.py" | ||
285 | ], | ||
286 | "rdepends": [ | ||
287 | "core", | ||
288 | "lang" | ||
289 | ], | ||
290 | "summary": "Python helpers for computing deltas between objects" | ||
291 | }, | ||
292 | "distutils": { | ||
293 | "files": [ | ||
294 | "${libdir}/python2.7/config", | ||
295 | "${libdir}/python2.7/distutils" | ||
296 | ], | ||
297 | "rdepends": [ | ||
298 | "core" | ||
299 | ], | ||
300 | "summary": "Python Distribution Utilities" | ||
301 | }, | ||
302 | "distutils-staticdev": { | ||
303 | "files": [ | ||
304 | "${libdir}/python2.7/config/lib*.a" | ||
305 | ], | ||
306 | "rdepends": [ | ||
307 | "distutils" | ||
308 | ], | ||
309 | "summary": "Python distribution utilities (static libraries)" | ||
310 | }, | ||
311 | "doctest": { | ||
312 | "files": [ | ||
313 | "${libdir}/python2.7/doctest.py" | ||
314 | ], | ||
315 | "rdepends": [ | ||
316 | "core", | ||
317 | "crypt", | ||
318 | "debugger", | ||
319 | "difflib", | ||
320 | "fcntl", | ||
321 | "io", | ||
322 | "lang", | ||
323 | "math", | ||
324 | "pprint", | ||
325 | "shell", | ||
326 | "unittest" | ||
327 | ], | ||
328 | "summary": "Python framework for running examples in docstrings" | ||
329 | }, | ||
330 | "email": { | ||
331 | "files": [ | ||
332 | "${libdir}/python2.7/email", | ||
333 | "${libdir}/python2.7/imaplib.py" | ||
334 | ], | ||
335 | "rdepends": [ | ||
336 | "contextlib", | ||
337 | "core", | ||
338 | "crypt", | ||
339 | "fcntl", | ||
340 | "io", | ||
341 | "lang", | ||
342 | "math", | ||
343 | "netclient", | ||
344 | "pickle", | ||
345 | "subprocess", | ||
346 | "textutils" | ||
347 | ], | ||
348 | "summary": "Python email support" | ||
349 | }, | ||
350 | "fcntl": { | ||
351 | "files": [ | ||
352 | "${libdir}/python2.7/lib-dynload/fcntl.so" | ||
353 | ], | ||
354 | "rdepends": [ | ||
355 | "core" | ||
356 | ], | ||
357 | "summary": "Python's fcntl interface" | ||
358 | }, | ||
359 | "gdbm": { | ||
360 | "files": [ | ||
361 | "${libdir}/python2.7/lib-dynload/gdbm.so" | ||
362 | ], | ||
363 | "rdepends": [ | ||
364 | "core" | ||
365 | ], | ||
366 | "summary": "Python GNU database support" | ||
367 | }, | ||
368 | "hotshot": { | ||
369 | "files": [ | ||
370 | "${libdir}/python2.7/hotshot", | ||
371 | "${libdir}/python2.7/lib-dynload/_hotshot.so" | ||
372 | ], | ||
373 | "rdepends": [ | ||
374 | "core" | ||
375 | ], | ||
376 | "summary": "Python hotshot performance profiler" | ||
377 | }, | ||
378 | "html": { | ||
379 | "files": [ | ||
380 | "${libdir}/python2.7/HTMLParser.py", | ||
381 | "${libdir}/python2.7/formatter.py", | ||
382 | "${libdir}/python2.7/htmlentitydefs.py", | ||
383 | "${libdir}/python2.7/htmllib.py", | ||
384 | "${libdir}/python2.7/markupbase.py", | ||
385 | "${libdir}/python2.7/sgmllib.py" | ||
386 | ], | ||
387 | "rdepends": [ | ||
388 | "core" | ||
389 | ], | ||
390 | "summary": "Python HTML processing support" | ||
391 | }, | ||
392 | "idle": { | ||
393 | "files": [ | ||
394 | "${bindir}/idle", | ||
395 | "${libdir}/python2.7/idlelib" | ||
396 | ], | ||
397 | "rdepends": [ | ||
398 | "core" | ||
399 | ], | ||
400 | "summary": "Python Integrated Development Environment" | ||
401 | }, | ||
402 | "image": { | ||
403 | "files": [ | ||
404 | "${libdir}/python2.7/colorsys.py", | ||
405 | "${libdir}/python2.7/imghdr.py" | ||
406 | ], | ||
407 | "rdepends": [ | ||
408 | "core" | ||
409 | ], | ||
410 | "summary": "Python graphical image handling" | ||
411 | }, | ||
412 | "io": { | ||
413 | "files": [ | ||
414 | "${libdir}/python2.7/StringIO.py", | ||
415 | "${libdir}/python2.7/_pyio.py", | ||
416 | "${libdir}/python2.7/io.py", | ||
417 | "${libdir}/python2.7/lib-dynload/_io.so", | ||
418 | "${libdir}/python2.7/lib-dynload/_socket.so", | ||
419 | "${libdir}/python2.7/lib-dynload/_ssl.so", | ||
420 | "${libdir}/python2.7/lib-dynload/cStringIO.so", | ||
421 | "${libdir}/python2.7/lib-dynload/select.so", | ||
422 | "${libdir}/python2.7/lib-dynload/termios.so", | ||
423 | "${libdir}/python2.7/pipes.py", | ||
424 | "${libdir}/python2.7/socket.py", | ||
425 | "${libdir}/python2.7/ssl.py", | ||
426 | "${libdir}/python2.7/tempfile.py" | ||
427 | ], | ||
428 | "rdepends": [ | ||
429 | "contextlib", | ||
430 | "core", | ||
431 | "crypt", | ||
432 | "fcntl", | ||
433 | "lang", | ||
434 | "math", | ||
435 | "netclient", | ||
436 | "textutils" | ||
437 | ], | ||
438 | "summary": "Python low-level I/O" | ||
439 | }, | ||
440 | "json": { | ||
441 | "files": [ | ||
442 | "${libdir}/python2.7/json", | ||
443 | "${libdir}/python2.7/lib-dynload/_json.so" | ||
444 | ], | ||
445 | "rdepends": [ | ||
446 | "core" | ||
447 | ], | ||
448 | "summary": "Python JSON support" | ||
449 | }, | ||
450 | "lang": { | ||
451 | "files": [ | ||
452 | "${libdir}/python2.7/bisect.py", | ||
453 | "${libdir}/python2.7/code.py", | ||
454 | "${libdir}/python2.7/codeop.py", | ||
455 | "${libdir}/python2.7/dis.py", | ||
456 | "${libdir}/python2.7/functools.py", | ||
457 | "${libdir}/python2.7/inspect.py", | ||
458 | "${libdir}/python2.7/lib-dynload/_bisect.so", | ||
459 | "${libdir}/python2.7/lib-dynload/_functools.so", | ||
460 | "${libdir}/python2.7/lib-dynload/array.so", | ||
461 | "${libdir}/python2.7/lib-dynload/parser.so", | ||
462 | "${libdir}/python2.7/opcode.py", | ||
463 | "${libdir}/python2.7/repr.py", | ||
464 | "${libdir}/python2.7/symbol.py", | ||
465 | "${libdir}/python2.7/token.py", | ||
466 | "${libdir}/python2.7/tokenize.py" | ||
467 | ], | ||
468 | "rdepends": [ | ||
469 | "core" | ||
470 | ], | ||
471 | "summary": "Python low-level language support" | ||
472 | }, | ||
473 | "logging": { | ||
474 | "files": [ | ||
475 | "${libdir}/python2.7/logging" | ||
476 | ], | ||
477 | "rdepends": [ | ||
478 | "core", | ||
479 | "io", | ||
480 | "threading" | ||
481 | ], | ||
482 | "summary": "Python logging support" | ||
483 | }, | ||
484 | "mailbox": { | ||
485 | "files": [ | ||
486 | "${libdir}/python2.7/mailbox.py" | ||
487 | ], | ||
488 | "rdepends": [ | ||
489 | "codecs", | ||
490 | "contextlib", | ||
491 | "core", | ||
492 | "crypt", | ||
493 | "datetime", | ||
494 | "email", | ||
495 | "fcntl", | ||
496 | "io", | ||
497 | "lang", | ||
498 | "math", | ||
499 | "mime", | ||
500 | "netclient", | ||
501 | "textutils" | ||
502 | ], | ||
503 | "summary": "Python mailbox format support" | ||
504 | }, | ||
505 | "math": { | ||
506 | "files": [ | ||
507 | "${libdir}/python2.7/lib-dynload/_random.so", | ||
508 | "${libdir}/python2.7/lib-dynload/cmath.so", | ||
509 | "${libdir}/python2.7/lib-dynload/math.so", | ||
510 | "${libdir}/python2.7/random.py", | ||
511 | "${libdir}/python2.7/sets.py" | ||
512 | ], | ||
513 | "rdepends": [ | ||
514 | "core", | ||
515 | "crypt" | ||
516 | ], | ||
517 | "summary": "Python math support" | ||
518 | }, | ||
519 | "mime": { | ||
520 | "files": [ | ||
521 | "${libdir}/python2.7/MimeWriter.py", | ||
522 | "${libdir}/python2.7/mimetools.py", | ||
523 | "${libdir}/python2.7/mimetypes.py", | ||
524 | "${libdir}/python2.7/quopri.py", | ||
525 | "${libdir}/python2.7/rfc822.py", | ||
526 | "${libdir}/python2.7/uu.py" | ||
527 | ], | ||
528 | "rdepends": [ | ||
529 | "contextlib", | ||
530 | "core", | ||
531 | "crypt", | ||
532 | "fcntl", | ||
533 | "io", | ||
534 | "lang", | ||
535 | "math", | ||
536 | "netclient", | ||
537 | "textutils" | ||
538 | ], | ||
539 | "summary": "Python MIME handling APIs" | ||
540 | }, | ||
541 | "mmap": { | ||
542 | "files": [ | ||
543 | "${libdir}/python2.7/lib-dynload/mmap.so" | ||
544 | ], | ||
545 | "rdepends": [ | ||
546 | "core" | ||
547 | ], | ||
548 | "summary": "Python memory-mapped file support" | ||
549 | }, | ||
550 | "modules": { | ||
551 | "files": [], | ||
552 | "rdepends": [ | ||
553 | "2to3", | ||
554 | "argparse", | ||
555 | "audio", | ||
556 | "bsddb", | ||
557 | "codecs", | ||
558 | "compile", | ||
559 | "compiler", | ||
560 | "compression", | ||
561 | "contextlib", | ||
562 | "core", | ||
563 | "crypt", | ||
564 | "ctypes", | ||
565 | "curses", | ||
566 | "datetime", | ||
567 | "db", | ||
568 | "debugger", | ||
569 | "difflib", | ||
570 | "distutils", | ||
571 | "doctest", | ||
572 | "email", | ||
573 | "fcntl", | ||
574 | "gdbm", | ||
575 | "hotshot", | ||
576 | "html", | ||
577 | "idle", | ||
578 | "image", | ||
579 | "io", | ||
580 | "json", | ||
581 | "lang", | ||
582 | "logging", | ||
583 | "mailbox", | ||
584 | "math", | ||
585 | "mime", | ||
586 | "mmap", | ||
587 | "multiprocessing", | ||
588 | "netclient", | ||
589 | "netserver", | ||
590 | "numbers", | ||
591 | "pickle", | ||
592 | "pkgutil", | ||
593 | "plistlib", | ||
594 | "pprint", | ||
595 | "profile", | ||
596 | "pydoc", | ||
597 | "re", | ||
598 | "resource", | ||
599 | "robotparser", | ||
600 | "shell", | ||
601 | "smtpd", | ||
602 | "sqlite3", | ||
603 | "sqlite3", | ||
604 | "stringold", | ||
605 | "subprocess", | ||
606 | "syslog", | ||
607 | "terminal", | ||
608 | "textutils", | ||
609 | "threading", | ||
610 | "tkinter", | ||
611 | "unittest", | ||
612 | "unixadmin", | ||
613 | "xml", | ||
614 | "xmlrpc", | ||
615 | "zlib" | ||
616 | ], | ||
617 | "summary": "All Python modules" | ||
618 | }, | ||
619 | "multiprocessing": { | ||
620 | "files": [ | ||
621 | "${libdir}/python2.7/lib-dynload/_multiprocessing.so", | ||
622 | "${libdir}/python2.7/multiprocessing" | ||
623 | ], | ||
624 | "rdepends": [ | ||
625 | "core", | ||
626 | "fcntl", | ||
627 | "io", | ||
628 | "pickle", | ||
629 | "subprocess", | ||
630 | "threading" | ||
631 | ], | ||
632 | "summary": "Python multiprocessing support" | ||
633 | }, | ||
634 | "netclient": { | ||
635 | "files": [ | ||
636 | "${libdir}/python2.7/Cookie.py", | ||
637 | "${libdir}/python2.7/_LWPCookieJar.py", | ||
638 | "${libdir}/python2.7/_MozillaCookieJar.py", | ||
639 | "${libdir}/python2.7/base64.py", | ||
640 | "${libdir}/python2.7/cookielib.py", | ||
641 | "${libdir}/python2.7/ftplib.py", | ||
642 | "${libdir}/python2.7/hmac.py", | ||
643 | "${libdir}/python2.7/httplib.py", | ||
644 | "${libdir}/python2.7/nntplib.py", | ||
645 | "${libdir}/python2.7/poplib.py", | ||
646 | "${libdir}/python2.7/smtplib.py", | ||
647 | "${libdir}/python2.7/telnetlib.py", | ||
648 | "${libdir}/python2.7/urllib.py", | ||
649 | "${libdir}/python2.7/urllib2.py", | ||
650 | "${libdir}/python2.7/urlparse.py", | ||
651 | "${libdir}/python2.7/uuid.py" | ||
652 | ], | ||
653 | "rdepends": [ | ||
654 | "codecs", | ||
655 | "contextlib", | ||
656 | "core", | ||
657 | "crypt", | ||
658 | "ctypes", | ||
659 | "datetime", | ||
660 | "email", | ||
661 | "fcntl", | ||
662 | "io", | ||
663 | "lang", | ||
664 | "math", | ||
665 | "mime", | ||
666 | "pickle", | ||
667 | "subprocess", | ||
668 | "textutils", | ||
669 | "threading" | ||
670 | ], | ||
671 | "summary": "Python Internet Protocol clients" | ||
672 | }, | ||
673 | "netserver": { | ||
674 | "files": [ | ||
675 | "${libdir}/python2.7/BaseHTTPServer.py", | ||
676 | "${libdir}/python2.7/CGIHTTPServer.py", | ||
677 | "${libdir}/python2.7/SimpleHTTPServer.py", | ||
678 | "${libdir}/python2.7/SocketServer.py", | ||
679 | "${libdir}/python2.7/cgi.py" | ||
680 | ], | ||
681 | "rdepends": [ | ||
682 | "contextlib", | ||
683 | "core", | ||
684 | "crypt", | ||
685 | "fcntl", | ||
686 | "io", | ||
687 | "lang", | ||
688 | "math", | ||
689 | "mime", | ||
690 | "netclient", | ||
691 | "shell", | ||
692 | "textutils", | ||
693 | "threading", | ||
694 | "unixadmin" | ||
695 | ], | ||
696 | "summary": "Python Internet Protocol servers" | ||
697 | }, | ||
698 | "numbers": { | ||
699 | "files": [ | ||
700 | "${libdir}/python2.7/decimal.py", | ||
701 | "${libdir}/python2.7/fractions.py", | ||
702 | "${libdir}/python2.7/numbers.py" | ||
703 | ], | ||
704 | "rdepends": [ | ||
705 | "codecs", | ||
706 | "core", | ||
707 | "lang", | ||
708 | "math", | ||
709 | "threading" | ||
710 | ], | ||
711 | "summary": "Python number APIs" | ||
712 | }, | ||
713 | "pickle": { | ||
714 | "files": [ | ||
715 | "${libdir}/python2.7/lib-dynload/cPickle.so", | ||
716 | "${libdir}/python2.7/pickle.py", | ||
717 | "${libdir}/python2.7/pickletools.py", | ||
718 | "${libdir}/python2.7/shelve.py" | ||
719 | ], | ||
720 | "rdepends": [ | ||
721 | "core", | ||
722 | "io" | ||
723 | ], | ||
724 | "summary": "Python serialisation/persistence support" | ||
725 | }, | ||
726 | "pkgutil": { | ||
727 | "files": [ | ||
728 | "${libdir}/python2.7/pkgutil.py" | ||
729 | ], | ||
730 | "rdepends": [ | ||
731 | "core" | ||
732 | ], | ||
733 | "summary": "Python package extension utility support" | ||
734 | }, | ||
735 | "plistlib": { | ||
736 | "files": [ | ||
737 | "${libdir}/python2.7/plistlib.py" | ||
738 | ], | ||
739 | "rdepends": [ | ||
740 | "core", | ||
741 | "datetime", | ||
742 | "io" | ||
743 | ], | ||
744 | "summary": "Generate and parse Mac OS X .plist files" | ||
745 | }, | ||
746 | "pprint": { | ||
747 | "files": [ | ||
748 | "${libdir}/python2.7/pprint.py" | ||
749 | ], | ||
750 | "rdepends": [ | ||
751 | "core", | ||
752 | "io" | ||
753 | ], | ||
754 | "summary": "Python pretty-print support" | ||
755 | }, | ||
756 | "profile": { | ||
757 | "files": [ | ||
758 | "${libdir}/python2.7/cProfile.py", | ||
759 | "${libdir}/python2.7/lib-dynload/_lsprof.so", | ||
760 | "${libdir}/python2.7/profile.py", | ||
761 | "${libdir}/python2.7/pstats.py" | ||
762 | ], | ||
763 | "rdepends": [ | ||
764 | "codecs", | ||
765 | "core", | ||
766 | "lang", | ||
767 | "resource", | ||
768 | "textutils" | ||
769 | ], | ||
770 | "summary": "Python basic performance profiling support" | ||
771 | }, | ||
772 | "pydoc": { | ||
773 | "files": [ | ||
774 | "${bindir}/pydoc", | ||
775 | "${libdir}/python2.7/pydoc.py", | ||
776 | "${libdir}/python2.7/pydoc_data" | ||
777 | ], | ||
778 | "rdepends": [ | ||
779 | "codecs", | ||
780 | "core", | ||
781 | "lang", | ||
782 | "pkgutil" | ||
783 | ], | ||
784 | "summary": "Python interactive help support" | ||
785 | }, | ||
786 | "re": { | ||
787 | "files": [ | ||
788 | "${libdir}/python2.7/sre.py" | ||
789 | ], | ||
790 | "rdepends": [ | ||
791 | "core" | ||
792 | ], | ||
793 | "summary": "Python Regular Expression APIs" | ||
794 | }, | ||
795 | "resource": { | ||
796 | "files": [ | ||
797 | "${libdir}/python2.7/lib-dynload/resource.so" | ||
798 | ], | ||
799 | "rdepends": [ | ||
800 | "core" | ||
801 | ], | ||
802 | "summary": "Python resource control interface" | ||
803 | }, | ||
804 | "robotparser": { | ||
805 | "files": [ | ||
806 | "${libdir}/python2.7/robotparser.py" | ||
807 | ], | ||
808 | "rdepends": [ | ||
809 | "contextlib", | ||
810 | "core", | ||
811 | "io", | ||
812 | "lang", | ||
813 | "netclient", | ||
814 | "textutils" | ||
815 | ], | ||
816 | "summary": "Python robots.txt parser" | ||
817 | }, | ||
818 | "shell": { | ||
819 | "files": [ | ||
820 | "${libdir}/python2.7/cmd.py", | ||
821 | "${libdir}/python2.7/commands.py", | ||
822 | "${libdir}/python2.7/dircache.py", | ||
823 | "${libdir}/python2.7/fnmatch.py", | ||
824 | "${libdir}/python2.7/glob.py", | ||
825 | "${libdir}/python2.7/popen2.py", | ||
826 | "${libdir}/python2.7/shlex.py", | ||
827 | "${libdir}/python2.7/shutil.py" | ||
828 | ], | ||
829 | "rdepends": [ | ||
830 | "core", | ||
831 | "io", | ||
832 | "unixadmin" | ||
833 | ], | ||
834 | "summary": "Python shell-like functionality" | ||
835 | }, | ||
836 | "smtpd": { | ||
837 | "files": [ | ||
838 | "${bindir}/smtpd.py", | ||
839 | "${libdir}/python2.7/asynchat.py", | ||
840 | "${libdir}/python2.7/asyncore.py", | ||
841 | "${libdir}/python2.7/smtpd.py" | ||
842 | ], | ||
843 | "rdepends": [ | ||
844 | "core", | ||
845 | "fcntl", | ||
846 | "io", | ||
847 | "lang" | ||
848 | ], | ||
849 | "summary": "Python Simple Mail Transport Daemon" | ||
850 | }, | ||
851 | "sqlite3": { | ||
852 | "files": [ | ||
853 | "${libdir}/python2.7/lib-dynload/_sqlite3.so" | ||
854 | ], | ||
855 | "rdepends": [ | ||
856 | "core" | ||
857 | ], | ||
858 | "summary": "Python Sqlite3 database support" | ||
859 | }, | ||
860 | "sqlite3-tests": { | ||
861 | "files": [ | ||
862 | "${libdir}/python2.7/sqlite3/test" | ||
863 | ], | ||
864 | "rdepends": [ | ||
865 | "core", | ||
866 | "tests" | ||
867 | ], | ||
868 | "summary": "Python Sqlite3 database support tests" | ||
869 | }, | ||
870 | "stringold": { | ||
871 | "files": [ | ||
872 | "${libdir}/python2.7/stringold.py" | ||
873 | ], | ||
874 | "rdepends": [ | ||
875 | "core" | ||
876 | ], | ||
877 | "summary": "Python string APIs [deprecated]" | ||
878 | }, | ||
879 | "subprocess": { | ||
880 | "files": [ | ||
881 | "${libdir}/python2.7/subprocess.py" | ||
882 | ], | ||
883 | "rdepends": [ | ||
884 | "core", | ||
885 | "fcntl", | ||
886 | "io", | ||
887 | "pickle" | ||
888 | ], | ||
889 | "summary": "Python subprocess support" | ||
890 | }, | ||
891 | "syslog": { | ||
892 | "files": [ | ||
893 | "${libdir}/python2.7/lib-dynload/syslog.so" | ||
894 | ], | ||
895 | "rdepends": [ | ||
896 | "core" | ||
897 | ], | ||
898 | "summary": "Python syslog interface" | ||
899 | }, | ||
900 | "terminal": { | ||
901 | "files": [ | ||
902 | "${libdir}/python2.7/pty.py", | ||
903 | "${libdir}/python2.7/tty.py" | ||
904 | ], | ||
905 | "rdepends": [ | ||
906 | "core", | ||
907 | "io" | ||
908 | ], | ||
909 | "summary": "Python terminal controlling support" | ||
910 | }, | ||
911 | "tests": { | ||
912 | "files": [ | ||
913 | "${libdir}/python2.7/test" | ||
914 | ], | ||
915 | "rdepends": [ | ||
916 | "core" | ||
917 | ], | ||
918 | "summary": "Python tests" | ||
919 | }, | ||
920 | "textutils": { | ||
921 | "files": [ | ||
922 | "${libdir}/python2.7/csv.py", | ||
923 | "${libdir}/python2.7/lib-dynload/_csv.so", | ||
924 | "${libdir}/python2.7/optparse.py", | ||
925 | "${libdir}/python2.7/textwrap.py" | ||
926 | ], | ||
927 | "rdepends": [ | ||
928 | "codecs", | ||
929 | "core", | ||
930 | "io", | ||
931 | "lang" | ||
932 | ], | ||
933 | "summary": "Python option parsin" | ||
934 | }, | ||
935 | "threading": { | ||
936 | "files": [ | ||
937 | "${libdir}/python2.7/Queue.py", | ||
938 | "${libdir}/python2.7/_threading_local.py", | ||
939 | "${libdir}/python2.7/dummy_thread.py", | ||
940 | "${libdir}/python2.7/dummy_threading.py", | ||
941 | "${libdir}/python2.7/mutex.py", | ||
942 | "${libdir}/python2.7/threading.py" | ||
943 | ], | ||
944 | "rdepends": [ | ||
945 | "core" | ||
946 | ], | ||
947 | "summary": "Python threading & synchronization support" | ||
948 | }, | ||
949 | "tkinter": { | ||
950 | "files": [ | ||
951 | "${libdir}/python2.7/lib-tk" | ||
952 | ], | ||
953 | "rdepends": [ | ||
954 | "core" | ||
955 | ], | ||
956 | "summary": "Python Tcl/Tk bindings" | ||
957 | }, | ||
958 | "unittest": { | ||
959 | "files": [ | ||
960 | "${libdir}/python2.7/unittest" | ||
961 | ], | ||
962 | "rdepends": [ | ||
963 | "core", | ||
964 | "difflib", | ||
965 | "io", | ||
966 | "lang", | ||
967 | "pprint", | ||
968 | "shell" | ||
969 | ], | ||
970 | "summary": "Python unit testing framework" | ||
971 | }, | ||
972 | "unixadmin": { | ||
973 | "files": [ | ||
974 | "${libdir}/python2.7/getpass.py", | ||
975 | "${libdir}/python2.7/lib-dynload/grp.so", | ||
976 | "${libdir}/python2.7/lib-dynload/nis.so" | ||
977 | ], | ||
978 | "rdepends": [ | ||
979 | "core", | ||
980 | "io" | ||
981 | ], | ||
982 | "summary": "Python Unix administration support" | ||
983 | }, | ||
984 | "xml": { | ||
985 | "files": [ | ||
986 | "${libdir}/python2.7/lib-dynload/_elementtree.so", | ||
987 | "${libdir}/python2.7/lib-dynload/pyexpat.so", | ||
988 | "${libdir}/python2.7/xml" | ||
989 | ], | ||
990 | "rdepends": [ | ||
991 | "core" | ||
992 | ], | ||
993 | "summary": "Python basic XML support" | ||
994 | }, | ||
995 | "xmlrpc": { | ||
996 | "files": [ | ||
997 | "${libdir}/python2.7/DocXMLRPCServer.py", | ||
998 | "${libdir}/python2.7/SimpleXMLRPCServer.py" | ||
999 | ], | ||
1000 | "rdepends": [ | ||
1001 | "codecs", | ||
1002 | "compression", | ||
1003 | "contextlib", | ||
1004 | "core", | ||
1005 | "crypt", | ||
1006 | "datetime", | ||
1007 | "fcntl", | ||
1008 | "io", | ||
1009 | "lang", | ||
1010 | "math", | ||
1011 | "mime", | ||
1012 | "netclient", | ||
1013 | "netserver", | ||
1014 | "pkgutil", | ||
1015 | "pydoc", | ||
1016 | "textutils", | ||
1017 | "threading", | ||
1018 | "xml", | ||
1019 | "zlib" | ||
1020 | ], | ||
1021 | "summary": "Python XML-RPC support" | ||
1022 | }, | ||
1023 | "zlib": { | ||
1024 | "files": [ | ||
1025 | "${libdir}/python2.7/lib-dynload/zlib.so" | ||
1026 | ], | ||
1027 | "rdepends": [ | ||
1028 | "core" | ||
1029 | ], | ||
1030 | "summary": "Python zlib compression support" | ||
1031 | } | ||
1032 | } \ No newline at end of file | ||
diff --git a/meta/recipes-devtools/python/python/sitecustomize.py b/meta/recipes-devtools/python/python/sitecustomize.py index 273901898a..4c8b5e2ba3 100644 --- a/meta/recipes-devtools/python/python/sitecustomize.py +++ b/meta/recipes-devtools/python/python/sitecustomize.py | |||
@@ -27,19 +27,11 @@ def __enableReadlineSupport(): | |||
27 | except IOError: | 27 | except IOError: |
28 | pass | 28 | pass |
29 | 29 | ||
30 | def __enableDefaultEncoding(): | ||
31 | import sys | ||
32 | try: | ||
33 | sys.setdefaultencoding( "utf8" ) | ||
34 | except LookupError: | ||
35 | pass | ||
36 | |||
37 | import sys | 30 | import sys |
38 | try: | 31 | try: |
39 | import rlcompleter, readline | 32 | import rlcompleter, readline |
40 | except ImportError: | 33 | except ImportError: |
41 | pass | 34 | pass |
42 | else: | 35 | else: |
43 | __enableDefaultEncoding() | ||
44 | __registerExitHandler() | 36 | __registerExitHandler() |
45 | __enableReadlineSupport() | 37 | __enableReadlineSupport() |