path: root/scripts
diff options
authorGary Thomas <>2012-03-23 13:28:16 -0600
committerRichard Purdie <>2012-03-26 12:13:05 +0100
commit4a0720fd32ec5f5f76e6c8e859af1d7364bec23d (patch)
tree028cbb18529741ad098e9d1871ba08ddd78b706d /scripts
parent5b86fb09c57d738bc4dde3e7ca6f11aafe0ccc3c (diff)
python: fix packaging dependencies on minimal systems
If you install the top-level python package only on a minimal system which has no other python packages installed then python is not functional at all. Without any extra packages installed this error is seen: # python Traceback (most recent call last): File "/usr/lib/python2.7/", line 64, in <module> import traceback ImportError: No module named traceback Installing python-lang only partly fixes the problem as this error still exists: # python Traceback (most recent call last): File "/usr/lib/python2.7/", line 569, in <module> main() File "/usr/lib/python2.7/", line 551, in main known_paths = addusersitepackages(known_paths) File "/usr/lib/python2.7/", line 278, in addusersitepackages user_site = getusersitepackages() File "/usr/lib/python2.7/", line 253, in getusersitepackages user_base = getuserbase() # this will also set USER_BASE File "/usr/lib/python2.7/", line 243, in getuserbase USER_BASE = get_config_var('userbase') File "/usr/lib/python2.7/", line 520, in get_config_var return get_config_vars().get(name) File "/usr/lib/python2.7/", line 400, in get_config_vars import re ImportError: No module named re (From OE-Core rev: c239564c768d0f305d8707103f4c59cf60431670) Signed-off-by: Gary Thomas <> Signed-off-by: Richard Purdie <>
Diffstat (limited to 'scripts')
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/contrib/python/ b/scripts/contrib/python/
index 85ca353285..267d6786b1 100755
--- a/scripts/contrib/python/
+++ b/scripts/contrib/python/
@@ -160,7 +160,7 @@ if __name__ == "__main__":
# Parameters: revision, name, description, dependencies, filenames
- m.addPackage( "${PN}-core", "Python Interpreter and core modules (needed!)", "",
+ m.addPackage( "${PN}-core", "Python Interpreter and core modules (needed!)", "${PN}-lang ${PN}-re",
"__future__.* _abcoll.* abc.* copy.* copy_reg.* ConfigParser.* " +
"genericpath.* getopt.* linecache.* new.* " +
"os.* posixpath.* struct.* " +