python: fix packaging dependencies on minimal systems
authorGary Thomas <gary@mlbassoc.com>
Fri, 23 Mar 2012 19:28:16 +0000 (13:28 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 26 Mar 2012 11:13:05 +0000 (12:13 +0100)
commitf1bf6359298c4070aadca7fc74643b752b9fa9d4
tree14b124aa54b00c9ba58423d3bf95e93da74b1596
parent9e8a3f9e282384f2810c3f32581502bfa291d0f6
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/site.py", 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/site.py", line 569, in <module>
      main()
    File "/usr/lib/python2.7/site.py", line 551, in main
      known_paths = addusersitepackages(known_paths)
    File "/usr/lib/python2.7/site.py", line 278, in addusersitepackages
      user_site = getusersitepackages()
    File "/usr/lib/python2.7/site.py", line 253, in getusersitepackages
      user_base = getuserbase() # this will also set USER_BASE
    File "/usr/lib/python2.7/site.py", line 243, in getuserbase
      USER_BASE = get_config_var('userbase')
    File "/usr/lib/python2.7/sysconfig.py", line 520, in get_config_var
      return get_config_vars().get(name)
    File "/usr/lib/python2.7/sysconfig.py", line 400, in get_config_vars
      import re
  ImportError: No module named re

(From OE-Core rev: c239564c768d0f305d8707103f4c59cf60431670)

Signed-off-by: Gary Thomas <gary@mlbassoc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/python/python-2.7-manifest.inc
meta/recipes-devtools/python/python_2.7.2.bb
scripts/contrib/python/generate-manifest-2.7.py