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

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