Blame SOURCES/00121-add-Modules-to-build-path.patch

6e8c2f
--- Python-2.7.5/Lib/site.py.orig	2013-05-16 12:47:55.000000000 +0200
6e8c2f
+++ Python-2.7.5/Lib/site.py	2013-05-16 12:56:20.089058109 +0200
6e8c2f
@@ -529,6 +529,10 @@ def main():
6e8c2f
 
6e8c2f
     abs__file__()
6e8c2f
     known_paths = removeduppaths()
6e8c2f
+    from sysconfig import is_python_build
6e8c2f
+    if is_python_build():
6e8c2f
+        from _sysconfigdata import build_time_vars
6e8c2f
+        sys.path.append(os.path.join(build_time_vars['abs_builddir'], 'Modules'))
6e8c2f
     if ENABLE_USER_SITE is None:
6e8c2f
         ENABLE_USER_SITE = check_enableusersite()
6e8c2f
     known_paths = addusersitepackages(known_paths)